12,621,744 members (37,340 online)

# Algorithms

 Re: Puzzle 8 Solving with bfs Alan Balkany26-Sep-12 6:09 Alan Balkany 26-Sep-12 6:09
 Bit Interleaver Skippums24-Sep-12 17:07 Skippums 24-Sep-12 17:07
 Image processing fabio_antonio23-Sep-12 9:25 fabio_antonio 23-Sep-12 9:25
 Re: Image processing Alan Balkany24-Sep-12 5:46 Alan Balkany 24-Sep-12 5:46
 Checking the network en41115-Sep-12 8:24 en411 15-Sep-12 8:24
 linkRe: Checking the network YvesDaoust21-Sep-12 1:11 YvesDaoust 21-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.
 an optimal elevator-use algorithm BillWoodruff13-Sep-12 4:38 BillWoodruff 13-Sep-12 4:38
 Re: an optimal elevator-use algorithm Alan Balkany13-Sep-12 5:41 Alan Balkany 13-Sep-12 5:41
 Re: an optimal elevator-use algorithm BillWoodruff19-Sep-12 5:35 BillWoodruff 19-Sep-12 5:35
 Please, poke holes in my cryptographic function... SixOfTheClock13-Sep-12 1:52 SixOfTheClock 13-Sep-12 1:52
 What kind of checksum can this be? GrooverFromHolland9-Sep-12 10:18 GrooverFromHolland 9-Sep-12 10:18
 Re: What kind of checksum can this be? Alan N9-Sep-12 12:55 Alan N 9-Sep-12 12:55
 Re: What kind of checksum can this be? GrooverFromHolland9-Sep-12 23:15 GrooverFromHolland 9-Sep-12 23:15
 Linear Regression Most Efficient algorithm calc Line of Best Fit A*****4-Sep-12 20:24 A***** 4-Sep-12 20:24
 Re: Linear Regression Most Efficient algorithm calc Line of Best Fit Peter_in_27804-Sep-12 21:17 Peter_in_2780 4-Sep-12 21:17
 Re: Running out of Memory - Maths Check Andrei Straut3-Sep-12 10:03 Andrei Straut 3-Sep-12 10:03
 Re: Running out of Memory - Maths Check Andrei Straut3-Sep-12 11:56 Andrei Straut 3-Sep-12 11:56
 Re: Running out of Memory - Maths Check harold aptroot3-Sep-12 22:54 harold aptroot 3-Sep-12 22:54