Complete IIT AIEEE ICSE ISC PMT help forum
This is a free help Forum for Indian Students.
Complete IIT AIEEE ICSE ISC PMT help forum

Complete help forum for students preparing for icse iit aieee cbse pmt and other related exams.Stay updated about all 2011 exams.
 
HomeHome  PortalPortal  FAQFAQ  SearchSearch  RegisterRegister  MemberlistMemberlist  UsergroupsUsergroups  Log in  India NewsIndia News  
Keywords
YEAR papers question 2010 RESULT CLASS prelim
Latest topics
Top posters
abhas
 
Anu..i luv icse...:)
 
G-7
 
siya
 
Candy
 
jOhNy
 
Apurva
 
WinRrule
 
ambili
 
saif
 



Search if you can't find it here

JAVA ISC Practical exam level question

View previous topic View next topic Go down
AuthorMessage
saif
Active member
Active member



PostSubject: JAVA ISC Practical exam level question Sat Nov 28, 2009 10:02 pm

Write a program to solve the 8-puzzle problem.

8-puzzle:It is
played on a 3-by-3 grid with 8 square blocks labeled 1 through 8 and a blank
square. Your goal is to rearrange the blocks so that they are in order.
You are permitted to slide blocks horizontally or vertically
into the blank square.
The following
shows a sequence of legal moves from an initial board position
to the goal position
<blockquote>
initial
1 3
4 2 5
7 8 6

1 3
4 2 5
7 8 6

1 2 3
4 5
7 8 6

1 2 3
4 5
7 8 6

1 2 3
4 5 6
7 8
final
</blockquote>
Back to top Go down
View user profile

JAVA ISC Practical exam level question

View previous topic View next topic Back to top
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Complete IIT AIEEE ICSE ISC PMT help forum :: ISC :: ISC 2010 [Class xii] :: Computer-