Sorted Key Dictionary
#6
(04-13-2023, 08:39 PM)TempodiBasic Wrote: Hi Bplus
100 prisoners issue is on a page of Rosetta code. 
As you can see here Rosetta Code 100 prisoners problem
there is a publication of a solution in QB64.

Mines better, less LOC (33 vrs 79), but it only confirms the strategy works getting stats on a given number of trials.
WTH? is Chainway??? QB64 RC Output gives no indication how successful the strategy is as told in the You Tube video I referenced in my code.

Well this thread is about using Dictionary stuff, I just picked 100 Prisoners out of thousands to test variable value handling with Dictionary.
b = b + ...
Reply


Messages In This Thread
Sorted Key Dictionary - by bplus - 04-12-2023, 06:52 PM
RE: Sorted Key Dictionary - by madscijr - 04-12-2023, 07:15 PM
RE: Sorted Key Dictionary - by TempodiBasic - 04-12-2023, 11:14 PM
RE: Sorted Key Dictionary - by bplus - 04-13-2023, 07:37 PM
RE: Sorted Key Dictionary - by CharlieJV - 04-15-2023, 03:42 PM
RE: Sorted Key Dictionary - by TempodiBasic - 04-13-2023, 08:39 PM
RE: Sorted Key Dictionary - by bplus - 04-13-2023, 09:50 PM
RE: Sorted Key Dictionary - by TempodiBasic - 04-15-2023, 10:48 AM
RE: Sorted Key Dictionary - by bplus - 04-15-2023, 04:55 PM
RE: Sorted Key Dictionary - by CharlieJV - 04-15-2023, 07:11 PM



Users browsing this thread: 5 Guest(s)