15,905,229 members
Home / Discussions / Algorithms

# Algorithms

 Re: How to generate a grid where nodes have certain number of neighbors on average Meanwhale9-Apr-20 19:46 Meanwhale 9-Apr-20 19:46
 Re: How to generate a grid where nodes have certain number of neighbors on average Meanwhale9-Apr-20 19:53 Meanwhale 9-Apr-20 19:53
 >net Member 147935355-Apr-20 19:51 Member 14793535 5-Apr-20 19:51
 Re: >net Richard MacCutchan5-Apr-20 21:31 Richard MacCutchan 5-Apr-20 21:31
 Looking for an optimized algorithm to create a nested dictionaries and dump the same into yam format Member 120989893-Apr-20 9:25 Member 12098989 3-Apr-20 9:25
 Re: Looking for an optimized algorithm to create a nested dictionaries and dump the same into yam format Richard MacCutchan3-Apr-20 21:55 Richard MacCutchan 3-Apr-20 21:55
 String reversal algorithm Pita3227-Mar-20 13:36 Pita32 27-Mar-20 13:36
 Re: String reversal algorithm k505427-Mar-20 14:26 k5054 27-Mar-20 14:26
 Something like: ```let pos1 = first_of(str) let pos2 = last_of(str) while ( pos1 < pos2 ) do while ( isdigit(str[pos1]) AND pos1 < pos2 ) do incr pos1 done while ( isdigit(str[pos2]) and pos1 < pos2 ) do decr pos2 done # having got here, we know that either # pos1 and pos2 are non-digits, so we can swap them # or pos2 < pos1, which means we are done (while loop will terminate) if ( pos1 < pos2) then swap(str[pos1], str[pos2]) incr pos1 decr pos2 endif done``` Keep Calm and Carry On
 Re: String reversal algorithm Richard Deeming31-Mar-20 1:14 Richard Deeming 31-Mar-20 1:14
 Re: String reversal algorithm Richard MacCutchan31-Mar-20 2:32 Richard MacCutchan 31-Mar-20 2:32
 Re: String reversal algorithm Member 147935355-Apr-20 19:52 Member 14793535 5-Apr-20 19:52
 Travelling Salesman Problem wscwt0118-Mar-20 7:39 wscwt01 18-Mar-20 7:39
 Re: Travelling Salesman Problem k505418-Mar-20 8:48 k5054 18-Mar-20 8:48
 Re: Travelling Salesman Problem wscwt0118-Mar-20 11:12 wscwt01 18-Mar-20 11:12
 Re: Travelling Salesman Problem Member 147935355-Apr-20 19:53 Member 14793535 5-Apr-20 19:53
 Re: Travelling Salesman Problem Greg Utas18-Mar-20 9:28 Greg Utas 18-Mar-20 9:28
 Re: Travelling Salesman Problem wscwt0118-Mar-20 11:11 wscwt01 18-Mar-20 11:11
 Vehicle routing problem for large graph Member 147325527-Mar-20 12:23 Member 14732552 7-Mar-20 12:23
 Re: Vehicle routing problem for large graph harold aptroot7-Mar-20 13:35 harold aptroot 7-Mar-20 13:35
 Re: Vehicle routing problem for large graph Member 147325528-Mar-20 0:51 Member 14732552 8-Mar-20 0:51
 Re: Vehicle routing problem for large graph harold aptroot8-Mar-20 4:28 harold aptroot 8-Mar-20 4:28
 Re: Vehicle routing problem for large graph Member 147325528-Mar-20 6:41 Member 14732552 8-Mar-20 6:41
 Re: Vehicle routing problem for large graph harold aptroot8-Mar-20 7:48 harold aptroot 8-Mar-20 7:48
 Re: Vehicle routing problem for large graph Member 147325528-Mar-20 8:07 Member 14732552 8-Mar-20 8:07
 Re: Vehicle routing problem for large graph Hailu Worku Obsse17-Mar-20 20:15 Hailu Worku Obsse 17-Mar-20 20:15
 Last Visit: 31-Dec-99 18:00     Last Update: 25-May-24 1:36 Refresh ᐊ Prev1...14151617181920212223 Next ᐅ