The Picard Maneuver@lemmy.worldcake to Comic Strips@lemmy.world · 5 hours agoThree wisheslemmy.worldimagemessage-square52fedilinkarrow-up1392
arrow-up1392imageThree wisheslemmy.worldThe Picard Maneuver@lemmy.worldcake to Comic Strips@lemmy.world · 5 hours agomessage-square52fedilink
minus-squaresamus12345@sh.itjust.workslinkfedilinkEnglisharrow-up11·2 hours agoYup, I remember working through it the first time I saw this comic and there’s no paradox here.
minus-squarethebestaquaman@lemmy.worldlinkfedilinkarrow-up1·edit-228 minutes agoYou could argue that there is though, since the genie will grant three wishes. In that case, it operates like granted_wishes = 0 while granted_wishes < 3: wish = receive_wish() granted = grant_wish(wish) # True if wish is granted, false otherwise (invalid wish etc) if granted: granted_wishes = 0 So we get Do opposite of next -> granted_wishes = 1 Complete 3 -> granted_wishes = 2 Enter time loop (recurse) -inner loop- Do opposite of next (ignored due to outer loop) -> granted_wishes = 0 Ignore 3 -> granted_wishes = 1 Ignore 1 -> enter time loop (recurse) -inner loop 2- Do opposite of next (ignored due to outer loop) -> granted_wishes = 0 Ignore 3 -> granted_wishes = 1 Ignore 1 -> enter time loop (recurse) … etc. We get an infinite time-loop recursion, because we never reach the third guess in the inner loops.
minus-squareSubArcticTundra@lemmy.mllinkfedilinkarrow-up6·2 hours agoFor some reason it feels like there’s one though
Yup, I remember working through it the first time I saw this comic and there’s no paradox here.
You could argue that there is though, since the genie will grant three wishes. In that case, it operates like
granted_wishes = 0 while granted_wishes < 3: wish = receive_wish() granted = grant_wish(wish) # True if wish is granted, false otherwise (invalid wish etc) if granted: granted_wishes = 0So we get
granted_wishes = 1granted_wishes = 2-inner loop-
granted_wishes = 0granted_wishes = 1-inner loop 2-
granted_wishes = 0granted_wishes = 1… etc.
We get an infinite time-loop recursion, because we never reach the third guess in the inner loops.
For some reason it feels like there’s one though