Jump to content
  • Advertisement
Sign in to follow this  
Concentrate

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

This topic is 2508 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

Share this post


Link to post
Share on other sites
Advertisement
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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!