Trying to implement a heap based solution for boggle solver but stuck on this psuedocode from this site. Need help clearing things up

Started by
2 comments, last by RulerOfNothing 12 years, 2 months ago
Here is the site which contains the psuedocode http://www.mh-z.com/untangle/alg_heap.html

In his psuedocode he says :


  • Check if currentletter is q, in which case insert a new Letter into nextheap containing u, and the same coordinates and pointer member as currentletter.
  • Restore the trail of currentletter:


Can someone explain what he means by this. I will be very grateful. Thanks.
Edge cases will show your design flaws in your code!
Visit my site
Visit my FaceBook
Visit my github
Advertisement
Looks like a special case for the Boggle 'Qu' tile.

Looks like a special case for the Boggle 'Qu' tile.


I haven't really played boggle, whats so special about q u? The points im guessing?
Edge cases will show your design flaws in your code!
Visit my site
Visit my FaceBook
Visit my github
In english, nearly all occurences of the letter q are followed by the letter u, so I'm assuming the designers of boggle made "qu" one tile so you didn't get stuck with a useless 'q' tile.

This topic is closed to new replies.

Advertisement