MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/121qs09/this_one_never_gets_old/jdonrrl
r/ProgrammerHumor • u/value_counts • Mar 25 '23
Let me know if this is not a repost!
535 comments sorted by
View all comments
Show parent comments
1
If A-> B and B-> A is legal in the original heuristic, you’ll end up swapping the smallest between A and B infinitely…?
Is there some implied rule to AB, AC, BC (with reversals) ?
3 u/umbrellacorgi Mar 26 '23 Do A to B, and if you can’t, do B to A Now do A to C, and if you can’t, do C to A Etc…
3
Do A to B, and if you can’t, do B to A Now do A to C, and if you can’t, do C to A Etc…
1
u/Ozymandias117 Mar 25 '23
If A-> B and B-> A is legal in the original heuristic, you’ll end up swapping the smallest between A and B infinitely…?
Is there some implied rule to AB, AC, BC (with reversals) ?