Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.154.962 Times

24 Game Solver 1.0

  Date Added: September 04, 2013  |  Visits: 498

24 Game Solver

Report Broken Link
Printer Friendly Version


Product Homepage
Download (45 downloads)



Back in college, I was taught how to play this little math game by a Chinese friend of mine. She told me that they used to play this game quite regularly as kids. As a group of four, we would each plunk down a randomly generated card to have four numbers that may be manipulated in any way using +, *, -, or doTE. For example let's say the cards show 1, 5, 7 and12. One possible solution is 1*(7-5)*12. Recently, I thought it would be fun to write a Matlab program that would find all possible solutions to a group of four numbers. My solution uses a series of nested loops to test for different ordering of the vector in question, different operation combinations, and operation groupings using parentheses. I tried to make the code more efficient by trimming repeated vectors. For example, if the test vector is [10 10 4 4], there are only six unique permutations, instead of the expected 24 (4!). I would love to see if anyone out there can make this code more efficient.I wanted to test my code to see if it found all possible solutions. For a deck of 13 cards, it turns out that there are nchoosek(16,4) four card combinations, or 1820. From the Wikipedia page, I saw that Cheng Chang published all distant solutions to the puzzle at http://www.ocf.berkeley.edu/~chechang/24/puzzle_sol.html. Initial versions of the program did not find all solutions. For example it missed the obvious [1 1 2 7], whose solution could simply be (1+2)*(1+7). I added different parentheses combinations hoping to catch more of the solutions. Finally, the algorithm was able to catch all the solutions except for one: [3 3 8 8]. The solution turned out to be tricky: 8/(3-8/3)=24. After eliminating a rounding error, the algorithm now finds all the solutions published on Cheng's page.

Requirements: No special requirements
Platforms: Matlab
Keyword: Chang Cheng Distant Initial Nchoosek Published Puzzle Turns Versions Wikipedia
Users rating: 0/10

License: Shareware Size: 10 KB
USER REVIEWS
More Reviews or Write Review


24 GAME SOLVER RELATED
Puzzles  -  MacXword 1.2.0 1. 2. 2000
About MacXword The original Across Lite crossword client for Mac OS X, enabling users to play crossword puzzles from a wide variety of online sources. Download puzzles directly in MacXword, Time yourself, Print, Check and Reveal answers, perform...
1.3 MB  
Security Tools  -  SpamWars 2.0
SpamWars- 100% efficient anti-spam protection, with no loss of bona fide mail, thanks to a verification method of the relation between you and your e-mail contacts. This technique, called Challenge - Response, not only works for traditional...
30.23 MB  
Games  -  Puzzle Inlay 1.45
Inlay pictures with gems in this arcade-puzzle game. You are offered over 100 picture puzzles to inlay with gems. You can select one of the five missions. Use 17 varieties of gems, magic tools and bonuses. The objective of the game is to fill the...
5.16 MB  
Games  -  New terrific puzzle! 1.0
Rotate Mania Deluxe is the latest version of Rotate Mania game, an addictive puzzle based on the mix of Tetris, Clickomania and Collapse. Among games of that kind it stands out with its unique interface, unbelievable physics of the clockwork...
6.56 MB  
Puzzles  -  GPO Planet Puzzle 1
A fun and challenging puzzle game involving distant planets.
304 KB  
Puzzles  -  Puzzle Champion 1.01.0210
Puzzle Champion is a flexible puzzle game for one to four players. Numerous options allow individual customization of the game. Your task is to find the correct places of the tiles in a minimum of tries and time (optional). You choose from several...
3 KB  
Puzzles  -  123 Free Puzzle Card Games 3.1
123 FREE Puzzle 2003 is an exciting collection of eight Puzzle Card Games. 123 Free Puzzle 2003 features a winning layout, fast game play, rich sounds, extensive options, and quality help. 123 Free Puzzle 2003 features eight great Puzzle games:...
1.65 MB  
Puzzles  -  Poly 15 Puzzle 1.0
Poly 15 Puzzle is a enhanced game of classic 15 puzzle. The puzzle have triaggle, square and hexagon grid. It can remove any piece. Not only the maximum piece. So the strategy will change. Features * Three types of grid; * 3x3 to 10x10...
1.5 MB  
Games  -  2D 3D Puzzle Flowers No1 1.0.0.
2D 3D PUZZLE is a fun logic and 3D action puzzle game. It's a fast brainteaser. It has beautiful pictures, unique background music and sound, more difficult levels with less time. This game is very easy to operate but a great challenge to your...
3.71 MB  
Games  -  2D 3D Puzzle Dreamy Kiss 1.0.0.
2D 3D PUZZLE is a fun logic and 3D action puzzle game. It's a fast brainteaser. It has beautiful pictures, unique background music and sound, more difficult levels with less time. This game is very easy to operate but a great challenge to your...
3.52 MB  
NEW DOWNLOADS IN SCRIPTS, DEVELOPMENT TOOLS
Scripts  -  Freelancer Script 5.05
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Post projects. Featured projects. Private projects. Sealed projects. Edit/delete projects. Select freelancers....
5.49 MB  
Scripts  -  B2B Script 4.20
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Sign-up Account (Registration of account). Lead generation tools (for the sellers). Email verification to...
5.49 MB  
Scripts  -  B2C Script 5.06
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). The script comes with totally editable site colors, icons and graphics Multilevel categories allows extensive browsing Admin can change Category ordering or...
5.49 MB  
Scripts  -  Social Networking Script 2.86
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Registration with name, email, password, date of birth etc. User can add multiple school, college, university with start...
5.49 MB  
Scripts  -  Business Networking Script 8.04
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Ajax based interface. Profile creation. Different types of profile. Profile for jobseekers, employers and employed...
5.49 MB  
Development Tools  -  Aml2CHM 3.50
Those who use the popular Aml Pages text editor might be looking out for a way of generating help files from their text and notes. Aml2CHM is a plug-in that was developed to offer people a quick and efficient way of converting Aml Pages documents...
549.99 KB  
Development Tools  -  VMP Viewer 1.0
This is a very rudimentary tool to visualize the VMP files generated by BrainVoyager. Useful to share files with people who do not have BV.
10 KB  
Development Tools  -  Sending reports and timestamped file by emailing 1.0
main executing reference usage:[1] usage_send_mail.mIllustrates email sending with multiple separate files or single timestamped tar file. Attachment failure is properly handled, with continuation of report emailing without the attachment.[2]...
768 KB  
Development Tools  -  IrisMVC 2.0 rc1
IrisMVC is an OOP PHP framework that developers can use as a strong and secure foundation to build on various web applications following the Model-View-Controller (MVC) pattern. It provides the basic functionality developers need, without...
51.2 KB  
Development Tools  -  7-Zip for Script 4.42
7-Zip is a file archiver with a high compression ratio.Features:- High compression ratio in new 7z format with LZMA compression- Supported formats:- Packing / unpacking: 7z, ZIP, GZIP, BZIP2 and TAR- Unpacking only: RAR, CAB, ISO, ARJ, LZH, CHM,...
624.64 KB