13,259,847 members (53,872 online)

# Algorithms

 Re: Robot voice and FFT Albert Holguin22-Jan-14 4:14 Albert Holguin 22-Jan-14 4:14
 How to get the index of a cell in a Table pix_programmer20-Dec-12 2:27 pix_programmer 20-Dec-12 2:27
 Re: How to get the index of a cell in a Table Richard MacCutchan20-Dec-12 3:10 Richard MacCutchan 20-Dec-12 3:10
 When completing a bespoke programme should I give the code up? itorchuk17-Dec-12 9:08 itorchuk 17-Dec-12 9:08
 Re: When completing a bespoke programme should I give the code up? jschell17-Dec-12 9:27 jschell 17-Dec-12 9:27
 Re: When completing a bespoke programme should I give the code up? itorchuk17-Dec-12 9:37 itorchuk 17-Dec-12 9:37
 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.
 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
 nQueens algorithm PIEBALDconsult31-Dec-11 5:02 PIEBALDconsult 31-Dec-11 5:02
 Re: nQueens algorithm DaveAuld31-Dec-11 5:49 DaveAuld 31-Dec-11 5:49
 Re: nQueens algorithm PIEBALDconsult31-Dec-11 16:08 PIEBALDconsult 31-Dec-11 16:08
 Re: nQueens algorithm Member 41945931-Jan-12 14:20 Member 4194593 1-Jan-12 14:20
 Re: nQueens algorithm PIEBALDconsult1-Jan-12 17:14 PIEBALDconsult 1-Jan-12 17:14
 Re: nQueens algorithm PIEBALDconsult9-Jan-12 14:15 PIEBALDconsult 9-Jan-12 14:15
 Re: nQueens algorithm Member 419459311-Jan-12 9:25 Member 4194593 11-Jan-12 9:25
 Re: nQueens algorithm PIEBALDconsult11-Jan-12 10:35 PIEBALDconsult 11-Jan-12 10:35
 Re: nQueens algorithm Member 419459311-Jan-12 11:01 Member 4194593 11-Jan-12 11:01
 Re: nQueens algorithm PIEBALDconsult11-Jan-12 11:22 PIEBALDconsult 11-Jan-12 11:22
 Re: nQueens algorithm Member 419459311-Jan-12 11:42 Member 4194593 11-Jan-12 11:42
 Re: nQueens algorithm PIEBALDconsult11-Jan-12 12:16 PIEBALDconsult 11-Jan-12 12:16
 Message Closed 17-Jan-12 5:12 Member 8241646 17-Jan-12 5:12
 15 puzzle solution in C or C++ 123lucy457-Apr-10 6:25 123lucy45 7-Apr-10 6:25
 Last Visit: 31-Dec-99 19:00     Last Update: 24-Nov-17 10:08 Refresh « Prev1...40414243444546474849 Next »