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

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

Serving Software Downloads in 976 Categories, Downloaded 30.130.366 Times

24 Game Solver 1.0

  Date Added: September 04, 2013  |  Visits: 303

24 Game Solver

Report Broken Link
Printer Friendly Version


Product Homepage
Download (21 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
24 GAME SOLVER RELATED
Games  -  Hello Kitty Puzzle 1.1
The best Hello Kitty Puzzle game in the Apple Store - features stunning pictures of Hello Kitty which you can save to your device after you solve puzzle and use them as wallpapers. Two puzzles that you can enjoy without time limits and...
17.1 MB  
Games  -  Baby Animals: Puzzles for everyone 1.1
The best puzzle game with pictures of baby animals in the App Store. Save pictures and use them as wallpapers after solving puzzle!!! Two puzzles that you can enjoy without time limits and rush. If you love animals then this game is for...
14.7 MB  
Games  -  Horse Puzzles Full 1.0
This version of Horse Puzzles does not contain ads The best Horse Puzzle game in the Apple Store - features stunning pictures of horses and ponies which you can save to your device after you solve puzzle and use them as wallpapers!!!...
28.2 MB  
Games  -  My Horse Puzzles 2.0
The best Horse Puzzle game in the Apple Store - features stunning pictures of horses and ponies which you can save to your device after you solve puzzle and use them as wallpapers!!! 15 puzzle: Popular 15 puzzle game where you need to...
31.3 MB  
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  -  DesktopPuzzle Screen Saver 1.0
Turns your screen into a slide puzzle that randomly shuffles the cells and you have to solve it. It has options for number of rows and columns as well as other options for the slide puzzle.
131 KB  
Language  -  Puzzles 1.00.52
Puzzles is the computer version of wooden inset puzzles. Each puzzle has 4 to 12 pieces to insert into their appropriate holes. Children will learn matching and memory skills as they solve each puzzle. This educational toy will provide hours of...
2.76 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  -  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  
Development Tools  -  Barnardextest 1.0
This file, as the Fisher's exact test, performs the exact probability test for a table of frequency data cross-classified according to two categorical variables, each of which has two levels or subcategories (2x2). It is a non-parametric...
10 KB