>>27
Simple, then if you've determined a wall to be a closed loop mark it as "visited" so you wind up visiting a different wall until you wind up in the outer one and escape.
Yet another failure. You continue to amuse me. Even if you mark walls as visited, you may run into a loop if you get in the center of 9 looping walls, all marked visited, with the central one marked last, for example. The OMG OPTIMIZED version of this algorithm sure runs fast... and it's buggy as hell.
Ever heard of back-fucking-tracking with mark to avoid loops? That'd be any Satori progammer's first idea, the starting point to think of the best algorithm for this situation.
By now the guru is already out of the labyrinth, walking around the world to illuminate people with SICP.
>>28
Also, SICP is a beginner's book.
SICP is Alpha and Omega
The beginning and the end
The first and the last.
>>29
Lol, in your dreams.
Evolution of a Satori programmer:
- Programmer reads K&R and SICP
- Programmer completely misunderstands SICP
- Programmer thinks Scheme sucks, C rocks
- Programmer learns assembly
- Programmer writes OMG OPTIMIZED code in C with inline assembly
- Programmer gets old, needs a house and a life
- Programmer gets a job
- Employer, as stupid as he may be, realizes programmer is more expensive than hardware, and orders him to stop the OMG OPTIMIZED nonsense
- Programmer discovers abstraction
- Programmer gets lazy, a good quality of a programmer
- Programmer now works in XYZ, and thinks C is a pain in the ass
- Programmer reads about SICP in world4ch
- Programmer re-reads SICP
- Programmer finally understands SICP, receives enlightenment
- Programmer no longer needs to program, but he does for the job, or to get something done in many awesome ways he never believed possible, with 1/5 the code, in 1/10 the time, performing even better than his amateur OMG OPTIMIZED C/asm hacks did most of the times due to superior algorithms and spiritual
- Programmer is now Satori programmer