Click here to Skip to main content
11,645,349 members (64,770 online)

Algorithms

 
GeneralRe: Splitting up multiple readings... Pin
glennPattonWork9-Oct-12 4:45
memberglennPattonWork9-Oct-12 4:45 
GeneralRe: Splitting up multiple readings... Pin
Eddy Vluggen22-Oct-12 6:24
memberEddy Vluggen22-Oct-12 6:24 
QuestionPuzzle 8 Solving with bfs Pin
mohammadkaab25-Sep-12 22:50
membermohammadkaab25-Sep-12 22:50 
AnswerRe: Puzzle 8 Solving with bfs Pin
Alan Balkany26-Sep-12 4:27
memberAlan Balkany26-Sep-12 4:27 
GeneralRe: Puzzle 8 Solving with bfs Pin
mohammadkaab26-Sep-12 4:38
membermohammadkaab26-Sep-12 4:38 
GeneralRe: Puzzle 8 Solving with bfs Pin
Alan Balkany26-Sep-12 4:42
memberAlan Balkany26-Sep-12 4:42 
GeneralRe: Puzzle 8 Solving with bfs Pin
mohammadkaab26-Sep-12 5:01
membermohammadkaab26-Sep-12 5:01 
GeneralRe: Puzzle 8 Solving with bfs Pin
Alan Balkany26-Sep-12 5:09
memberAlan Balkany26-Sep-12 5:09 
GeneralRe: Puzzle 8 Solving with bfs Pin
mohammadkaab26-Sep-12 21:36
membermohammadkaab26-Sep-12 21:36 
QuestionBit Interleaver Pin
Skippums24-Sep-12 16:07
memberSkippums24-Sep-12 16:07 
QuestionImage processing Pin
fabio_antonio23-Sep-12 8:25
memberfabio_antonio23-Sep-12 8:25 
AnswerRe: Image processing Pin
Alan Balkany24-Sep-12 4:46
memberAlan Balkany24-Sep-12 4:46 
QuestionChecking the network Pin
en41115-Sep-12 7:24
memberen41115-Sep-12 7:24 
AnswerlinkRe: Checking the network Pin
YvesDaoust21-Sep-12 0:11
memberYvesDaoust21-Sep-12 0: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 Pin
BillWoodruff13-Sep-12 3:38
memberBillWoodruff13-Sep-12 3:38 
AnswerRe: an optimal elevator-use algorithm Pin
Alan Balkany13-Sep-12 4:41
memberAlan Balkany13-Sep-12 4:41 
GeneralRe: an optimal elevator-use algorithm Pin
BillWoodruff19-Sep-12 4:35
memberBillWoodruff19-Sep-12 4:35 
QuestionPlease, poke holes in my cryptographic function... Pin
SixOfTheClock13-Sep-12 0:52
memberSixOfTheClock13-Sep-12 0:52 
QuestionWhat kind of checksum can this be? Pin
GrooverFromHolland9-Sep-12 9:18
memberGrooverFromHolland9-Sep-12 9:18 
AnswerRe: What kind of checksum can this be? Pin
Alan N9-Sep-12 11:55
memberAlan N9-Sep-12 11:55 
GeneralRe: What kind of checksum can this be? Pin
GrooverFromHolland9-Sep-12 22:15
memberGrooverFromHolland9-Sep-12 22:15 
QuestionLinear Regression Most Efficient algorithm calc Line of Best Fit Pin
A*****4-Sep-12 19:24
memberA*****4-Sep-12 19:24 
AnswerRe: Linear Regression Most Efficient algorithm calc Line of Best Fit Pin
Peter_in_27804-Sep-12 20:17
memberPeter_in_27804-Sep-12 20:17 
QuestionRunning out of Memory - Maths Check Pin
Mike-MadBadger3-Sep-12 7:52
memberMike-MadBadger3-Sep-12 7:52 
AnswerRe: Running out of Memory - Maths Check Pin
Andrei Straut3-Sep-12 9:03
memberAndrei Straut3-Sep-12 9:03 
GeneralRe: Running out of Memory - Maths Check Pin
Mike-MadBadger3-Sep-12 10:11
memberMike-MadBadger3-Sep-12 10:11 
GeneralRe: Running out of Memory - Maths Check Pin
Andrei Straut3-Sep-12 10:56
memberAndrei Straut3-Sep-12 10:56 
GeneralRe: Running out of Memory - Maths Check Pin
Mike-MadBadger3-Sep-12 11:18
memberMike-MadBadger3-Sep-12 11:18 
GeneralRe: Running out of Memory - Maths Check Pin
harold aptroot3-Sep-12 21:54
memberharold aptroot3-Sep-12 21:54 
GeneralRe: Running out of Memory - Maths Check Pin
Mike-MadBadger4-Sep-12 0:26
memberMike-MadBadger4-Sep-12 0:26 
AnswerRe: News Page Pin
Mike-MadBadger3-Sep-12 21:12
memberMike-MadBadger3-Sep-12 21:12 
AnswerRe: Running out of Memory - Maths Check Pin
YvesDaoust3-Sep-12 23:21
memberYvesDaoust3-Sep-12 23:21 
GeneralRe: Running out of Memory - Maths Check Pin
Mike-MadBadger4-Sep-12 0:29
memberMike-MadBadger4-Sep-12 0:29 
AnswerRe: Running out of Memory - Maths Check Pin
Member 91314964-Sep-12 1:56
memberMember 91314964-Sep-12 1:56 
GeneralRe: Running out of Memory - Maths Check Pin
Mike-MadBadger4-Sep-12 9:29
memberMike-MadBadger4-Sep-12 9:29 
GeneralRe: Running out of Memory - Maths Check Pin
Member 91314965-Sep-12 2:00
memberMember 91314965-Sep-12 2:00 
SuggestionRe: Running out of Memory - Maths Check Pin
Jeremy David Thomson5-Sep-12 1:36
memberJeremy David Thomson5-Sep-12 1:36 
GeneralRe: Running out of Memory - Maths Check Pin
Mike-MadBadger5-Sep-12 5:54
memberMike-MadBadger5-Sep-12 5:54 
AnswerRe: Running out of Memory - Maths Check Pin
Member 31409626-Sep-12 20:36
memberMember 31409626-Sep-12 20:36 
GeneralRe: Running out of Memory - Maths Check Pin
Stefan_Lang7-Sep-12 4:29
memberStefan_Lang7-Sep-12 4:29 
AnswerRe: Running out of Memory - Maths Check Pin
Stefan_Lang7-Sep-12 4:49
memberStefan_Lang7-Sep-12 4:49 
GeneralRe: Running out of Memory - Maths Check Pin
Mike-MadBadger7-Sep-12 21:23
memberMike-MadBadger7-Sep-12 21:23 
GeneralRe: Running out of Memory - Maths Check Pin
Stefan_Lang10-Sep-12 0:53
memberStefan_Lang10-Sep-12 0:53 
GeneralRe: Running out of Memory - Maths Check Pin
Mike-MadBadger10-Sep-12 20:50
memberMike-MadBadger10-Sep-12 20:50 
GeneralRe: Running out of Memory - Maths Check Pin
Mike-MadBadger11-Sep-12 21:29
memberMike-MadBadger11-Sep-12 21:29 
GeneralRe: Running out of Memory - Maths Check Pin
Stefan_Lang11-Sep-12 22:46
memberStefan_Lang11-Sep-12 22:46 
AnswerRe: Running out of Memory - Maths Check Pin
Edward Giles26-Jun-13 19:35
memberEdward Giles26-Jun-13 19:35 
QuestionPDF417 generator and reader supports Arabic Pin
dinadido28-Aug-12 8:19
memberdinadido28-Aug-12 8:19 
AnswerCross post. Pin
SoMad28-Aug-12 11:10
memberSoMad28-Aug-12 11:10 
QuestionA Modelling Question Pin
Roger Wright21-Aug-12 13:01
memberRoger Wright21-Aug-12 13:01 

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
Web01 | 2.8.150731.1 | Last Updated 3 Aug 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid