Click here to Skip to main content

Algorithms

 
GeneralRe: Puzzle 8 Solving with bfs Pinmembermohammadkaab26-Sep-12 6:01 
GeneralRe: Puzzle 8 Solving with bfs PinmemberAlan Balkany26-Sep-12 6:09 
GeneralRe: Puzzle 8 Solving with bfs [modified] Pinmembermohammadkaab26-Sep-12 22:36 
QuestionBit Interleaver PinmemberSkippums24-Sep-12 17:07 
QuestionImage processing Pinmemberfabio_antonio23-Sep-12 9:25 
AnswerRe: Image processing PinmemberAlan Balkany24-Sep-12 5:46 
QuestionChecking the network Pinmemberen41115-Sep-12 8:24 
AnswerlinkRe: Checking the network PinmemberYvesDaoust21-Sep-12 1:11 
Sorry, I see nothing difficult in this problem statement. Or maybe is it just that you never wrote a program ? Or are you asking how to represent the network topology and path costs ?
 
For a), scan the array and check if two consecutive indexes are the same.
 
For b), scan the array and check if every pair of indexes are linked in the user-supplied topology (you need some function that will query the topology and tell you if a link exists).
 
For c), the condition is a[5] != 5.
 
For d), use a double loop: the outer loop from i=1 to 4, the inner loop for j=i+1 to 5. In the body of the inner loop, test a[i] == a[j].
 
Accumulating the path costs is also obvious once you have a query function per network link.
Questionan optimal elevator-use algorithm PinmemberBillWoodruff13-Sep-12 4:38 
AnswerRe: an optimal elevator-use algorithm PinmemberAlan Balkany13-Sep-12 5:41 
GeneralRe: an optimal elevator-use algorithm PinmemberBillWoodruff19-Sep-12 5:35 
QuestionPlease, poke holes in my cryptographic function... [modified] PinmemberSixOfTheClock13-Sep-12 1:52 
QuestionWhat kind of checksum can this be? [modified] PinmemberGrooverFromHolland9-Sep-12 10:18 
AnswerRe: What kind of checksum can this be? PinmemberAlan N9-Sep-12 12:55 
GeneralRe: What kind of checksum can this be? PinmemberGrooverFromHolland9-Sep-12 23:15 
QuestionLinear Regression Most Efficient algorithm calc Line of Best Fit PinmemberA*****4-Sep-12 20:24 
AnswerRe: Linear Regression Most Efficient algorithm calc Line of Best Fit [modified] PinmemberPeter_in_27804-Sep-12 21:17 
QuestionRunning out of Memory - Maths Check PinmemberMike-MadBadger3-Sep-12 8:52 
AnswerRe: Running out of Memory - Maths Check [modified] PinmemberAndrei Straut3-Sep-12 10:03 
GeneralRe: Running out of Memory - Maths Check PinmemberMike-MadBadger3-Sep-12 11:11 
GeneralRe: Running out of Memory - Maths Check PinmemberAndrei Straut3-Sep-12 11:56 
GeneralRe: Running out of Memory - Maths Check PinmemberMike-MadBadger3-Sep-12 12:18 
GeneralRe: Running out of Memory - Maths Check Pinmemberharold aptroot3-Sep-12 22:54 
GeneralRe: Running out of Memory - Maths Check PinmemberMike-MadBadger4-Sep-12 1:26 
AnswerRe: News Page PinmemberMike-MadBadger3-Sep-12 22:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web04 | 2.8.150129.1 | Last Updated 27 Jan 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid