Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

22: The most important thing - Richard Buckland UNSW

Loading...

Sign in or sign up now!
13,987
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Apr 25, 2008

The challenge: can we write a Sudoku solver in a single lecture?

What is a sudoku puzzle? Estimation revisited. how to solve a problem - difference between the approach of a master and a novice.

What is the most important thing?

Also: How to lie with statistics. hang gliding. easy as falling off a bike. algorithms and data structures.

  • likes, 2 dislikes

Link to this comment:

Share to:

Top Comments

  • "I won't stick it in if it's not legal!"

    Good idea!

  • Richard discusses most complex function in this program, which is hasSolution, at 34:19 // hasSolution does most solving work, so solution can be later displayed.

see all

All Comments (14)

Sign In or Sign Up now to post a comment!
  • He's got a lot of points to remember. He's funny too.

  • @axelasdf I do think this idea may have some flaws.

  • I'd use a deductive method to solve the puzzle. Start with nine times as many cells, with 1-9 repeating, counting each set of nine as the possible values for one cell and eliminate all impossible choices until only one remains.

  • @vladimirkovalev1990

    What you're suggesting is in fact quite impossible (you're right to suspect that), but that's by far not the only way to solve a puzzle. The way I tend to solve the puzzle is using the same method a human would do it: have the program go through all blank pieces and check to see if there is enough information to solve it. Keep checking them and solving pieces that have info until you finish. If it can't be solved this way then a human can't solve it either.

  • can we actually solve sudoku in reasonable time using this algorithm? I have built a program myself using this algorithm and as soon as I did so it struck me that if we start with a sudoku that has got no solutions e.g. 1,1,......... we will have to try out ALL(!) of the 9^79 combinations to be sure that it really is unsolvable. Therefore, I believe on average will take ages for the offered algorithm to solve a problem. Please correct me if I am wrong.

  • @reitube2 you can download...use firefox, and get an add on called video download helper..works a treat....very easy to use

  • Someone steals his Mars Bar at 15:08

  • HOW DO ALGORITHM?

  • man he's good!

    i have been watching Richard's video for a whole day.

    wish i can download it instead of on youtube...

Loading...

0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more