Simle align/3 project

There are three lists of integers, as shown below.




The aim is to find the common trio of consecutive integers in

the lists above, which has maximum sum. Obviously in each

listing the triad may be in a different location. at our

example the trio sought shown below.


| location 4)


| (location 5)


| (location 7)

Implement a predicate allign / 3 which in the first argument

returns the positions where start the triplets we seek in any

list, the second argument is the triad, and the third the

the sum.

?- allign(Pos, Triple, Sum).

Pos = [4, 5, 7]

Triple = [10, 22, 11]

Sum = 43

Yes ([url removed, login to view] cpu)

Compétences : Delphi, Microsoft Access, Prolog, Visual Basic, Visual Basic pour les apps

en voir plus : individual interested ur project how pay 1k entries if pay 1k entries start work immediately submit timegood experience, implement google provisioning concept project, project idea implement software engineer, project fedex implement, implement voip project, implement credit card processing php shopping cart project, simle project access, pharmacy project implement j2ee net, implement mysql database online bookstore project, steps implement design project, list different project implement small organization, implement website project, implement project design website

Concernant l'employeur :
( 0 commentaires ) Greece

Nº du projet : #12683814

1 freelancer is bidding on average $10 for this job


Hired by the Employer

$10 USD / heure
(24 Commentaires)