EBK COMPUTER SCIENCE: AN OVERVIEW
12th Edition
ISBN: 8220102744196
Author: BRYLOW
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Concept explainers
Question
Chapter 11, Problem 35CRP
Program Plan Intro
Best fit
To eliminate irrelevant moves, the tiles that are out of place should always be adjacent to the hole. The tiles that are already in place should not be moved. The best fit algorithm eliminates the moves with a higher cost, but only for proceeding moves. This algorithm does not consider the overall cost associated with a path.
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
Topic: Gayle-Shaply Algorithms
Q5/ Consider the following search space in which the goal is to find the p
from
S to G, next(S,A,5), next(S,B,2),next(A,G,5), next (B,D,1), next(B,C,2), next
(C,G,2), next(D,G,5), where next(X,Y,Z) means that Y is a child of X and the
cost of going from X to Y is Z.
ho(S)=0, ho(A)=0, ho(B)=0, ho(C)=0, ho(D)=0, ho(G)=0,
h₁(S)-5, h₁(A)=3, h₁(B)=4, h₁(C)=2, h₁(D)=5, h₁(G)=0,
h₂(S)=6, h₂(A)=5, h₂(B)=2, h₂(C)=5, h₂(D)=3, h₂(G)=0,
A. Which of the above heuristic functions ho,h1 and h2 are admissible?
Give the solution of the longest path found by the A algorithm using the
admissible heuristic function.
Q5/ Consider the following search space in which the goal is to find the p
from
S to G, next(S,A,5), next(S,B,2),next(A,G,5), next (B,D,1), next(B,C,2), next
(C,G,2), next(D,G,5), where next(X,Y,Z) means that Y is a child of X and the
cost of going from X to Y is Z.
ho(S)=0, ho(A)=0, ho(B)=0, ho(C)=0, ho(D)=0, ho(G)=0,
h₁(S)-5, h₁(A)=3, h₁(B)=4, h₁(C)=2, h₁ (D)=5, h₁(G)=0,
h₂(S)-6, h₂(A)=5, h₂(B)=2, h₂(C)=5, h₂(D)=3, h₂(G)=0,
- Which of the above heuristic functions ho,h1 and h2 are admissible?
- Give the solution of the longest path found by the A algorithm using the
admissible heuristic function.
Note: showe the solution using
paper please
Chapter 11 Solutions
EBK COMPUTER SCIENCE: AN OVERVIEW
Ch. 11.1 - Prob. 1QECh. 11.1 - Prob. 2QECh. 11.1 - Prob. 3QECh. 11.1 - Prob. 4QECh. 11.1 - Prob. 5QECh. 11.2 - Prob. 1QECh. 11.2 - Prob. 2QECh. 11.2 - Prob. 3QECh. 11.2 - Prob. 4QECh. 11.2 - Identify the ambiguities involved in translating...
Ch. 11.2 - Prob. 6QECh. 11.2 - Prob. 7QECh. 11.3 - Prob. 1QECh. 11.3 - Prob. 2QECh. 11.3 - Prob. 3QECh. 11.3 - Prob. 4QECh. 11.3 - Prob. 5QECh. 11.3 - Prob. 6QECh. 11.3 - Prob. 7QECh. 11.3 - Prob. 8QECh. 11.3 - Prob. 9QECh. 11.4 - Prob. 1QECh. 11.4 - Prob. 2QECh. 11.4 - Prob. 3QECh. 11.4 - Prob. 4QECh. 11.4 - Prob. 5QECh. 11.5 - Prob. 1QECh. 11.5 - Prob. 2QECh. 11.5 - Prob. 3QECh. 11.5 - Prob. 4QECh. 11.6 - Prob. 1QECh. 11.6 - Prob. 2QECh. 11.6 - Prob. 3QECh. 11.7 - Prob. 1QECh. 11.7 - Prob. 2QECh. 11.7 - Prob. 3QECh. 11 - Prob. 1CRPCh. 11 - Prob. 2CRPCh. 11 - Identify each of the following responses as being...Ch. 11 - Prob. 4CRPCh. 11 - Prob. 5CRPCh. 11 - Prob. 6CRPCh. 11 - Which of the following activities do you expect to...Ch. 11 - Prob. 8CRPCh. 11 - Prob. 9CRPCh. 11 - Prob. 10CRPCh. 11 - Prob. 11CRPCh. 11 - Prob. 12CRPCh. 11 - Prob. 13CRPCh. 11 - Prob. 14CRPCh. 11 - Prob. 15CRPCh. 11 - Prob. 16CRPCh. 11 - Prob. 17CRPCh. 11 - Prob. 18CRPCh. 11 - Give an example in which the closed-world...Ch. 11 - Prob. 20CRPCh. 11 - Prob. 21CRPCh. 11 - Prob. 22CRPCh. 11 - Prob. 23CRPCh. 11 - Prob. 24CRPCh. 11 - Prob. 25CRPCh. 11 - Prob. 26CRPCh. 11 - Prob. 27CRPCh. 11 - Prob. 28CRPCh. 11 - Prob. 29CRPCh. 11 - Prob. 30CRPCh. 11 - Prob. 31CRPCh. 11 - Prob. 32CRPCh. 11 - Prob. 33CRPCh. 11 - What heuristic do you use when searching for a...Ch. 11 - Prob. 35CRPCh. 11 - Prob. 36CRPCh. 11 - Prob. 37CRPCh. 11 - Prob. 38CRPCh. 11 - Suppose your job is to supervise the loading of...Ch. 11 - Prob. 40CRPCh. 11 - Prob. 41CRPCh. 11 - Prob. 42CRPCh. 11 - Prob. 43CRPCh. 11 - Prob. 44CRPCh. 11 - Prob. 45CRPCh. 11 - Prob. 46CRPCh. 11 - Prob. 47CRPCh. 11 - Prob. 48CRPCh. 11 - Draw a diagram similar to Figure 11.5 representing...Ch. 11 - Prob. 50CRPCh. 11 - Prob. 51CRPCh. 11 - Prob. 52CRPCh. 11 - Prob. 53CRPCh. 11 - Prob. 54CRPCh. 11 - Prob. 55CRPCh. 11 - Prob. 56CRPCh. 11 - Prob. 57CRPCh. 11 - Prob. 1SICh. 11 - Prob. 2SICh. 11 - Prob. 3SICh. 11 - Prob. 4SICh. 11 - Prob. 5SICh. 11 - Prob. 6SICh. 11 - Prob. 7SICh. 11 - Prob. 8SICh. 11 - Prob. 9SICh. 11 - Prob. 10SICh. 11 - Prob. 11SICh. 11 - Prob. 12SICh. 11 - A GPS in an automobile provides a friendly voice...Ch. 11 - Prob. 14SI
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- In this assignment, you will design the AddNode and AddEdge methods for the supplied graph data structure. The AddNode and AddEdge methods are to support the construction of undirected (bi-directional) graphs. That is if node A is connected to node B then node B is also connected to node A. In addition to the AddNode and AddEdge methods, create a method called BreadthFirstSearch that accepts a starting node and performs a Breadth First Search of the graph. The algorithm for the breadth first traversal is provided below 1. Add a node to the queue (starting node) 2. While the queue is not empty, dequeue a node 3. Add all unvisited nodes of the dequeued node from step 2 and add them to queue 4. End While Demonstrate your methods by creating the graph depicted in Figure 1 below and running the Breadth First Search on the graph using 0 as the starting node. (see image below) You may use C++, C#, to implement this program as long as the following requirements are met. A C++, or C#…arrow_forwardAlgorithm design with sorting. Each of n users spends some time on a social media site. For each i = 1, . . . , n, user i enters the site at time ai and leaves at time bi ≥ ai. You are interested in the question: how many distinct pairs of users are ever on the site at the same time? (Here, the pair (i, j) is the same as the pair (j, i)).Example: Suppose there are 5 users with the following entering and leaving times: Then, the number of distinct pairs of users who are on the site at the same time is five: these pairs are (1, 2), (1, 3), (2, 3), (4, 6), (5, 6). (Drawing the intervals on a number line may make this easier to see).(a) Given input (a1 , b1),(a2 , b2), . . . ,(an, bn) as above in no particular order (i.e., not sorted in any way), describe a straightforward algorithm that takes Θ(n2)-time to compute the number of pairs of users who are ever on the site at the same time, and explain why it takes Θ(n2)-time. [We are expecting pseudocode and a brief justification for its…arrow_forward6. Map Colouring Using theBush fire map Draw a graph of the region on the map and store the graph in the code. Then write an algorithm or pseudo code in python to find if the map is 4 colourable. NT BUSHFIRES COUNCIL REGIONS Arafura See Timer Vernon Arnhem Sea Gulf Arafura Katherine Carpintaria Gulf VRD Elliot Wauchope Barkly Cre NORTHERN TERRITORY Alice Springs West Alice N Springs East SOUTH AUSTRALIA WESTERN AUSTRALIA QUEENSLANDarrow_forward
- Correct answer will be upvoted else downvoted. Computer science. You should handle m questions with it. Each question is one of three sorts: "+ u v c" — add curve from u to v with name c. It's dependable that there is no curve (u,v) in the diagram as of now; "− u v" — eradicate curve from u to v. It's reliable that the chart contains circular segment (u,v) right now; "? k" — find the succession of k vertices v1,v2,… ,vk to such an extent that there exist the two courses v1→v2→⋯→vk and vk→vk−1→⋯→v1 and if you record characters along the two courses you'll get a similar string. You can visit a similar vertices quite a few times. Input The main line contains two integers n and m (2≤n≤2⋅105; 1≤m≤2⋅105) — the number of vertices in the diagram and the number of questions. The following m lines contain questions — one for each line. Each question is one of three kinds: "+ u v c" (1≤u,v≤n; u≠v; c is a lowercase Latin letter); "− u v" (1≤u,v≤n; u≠v); "? k"…arrow_forwardUndirected graph is given with the list of edges. Build an adjacency matrix. Print the number of ones in adjacency matrix. Graph can contain multiple edges and loops. Input First line contains number of vertices n. Each of the next line contains one edge. Read the edges till the end of file. Output Build an adjacency matrix. Print the number of ones in adjacency matrix. Sample input 3 1 2 23 22 32 Sample output 5arrow_forwardIn a school, students of 5th Grade are going for a picnic. For a particular game between 10 players, they needs to be organized in the ascending order of their height. Teacher selects a one random student out of 10. That student acts as a mediator, all students having height less than mediator goes on left and rest on his right. The same process repeats again between the left and right group. The process continues and will stop when all the players are in ascending order of their height. Signify which sorting algorithm can be helpful to design this model and how. What additional functionality can you add to this. Implement the given model. Write a C program for that and this program take user input like his/her name, height etc.arrow_forward
- In a school, students of 5th Grade are going for a picnic. For a particular game between 10 players, they needs to be organized in the ascending order of their height. Teacher selects a one random student out of 10. That student acts as a mediator, all students having height less than mediator goes on left and rest on his right. The same process repeats again between the left and right group. The process continues and will stop when all the players are in ascending order of their height. Signify which sorting algorithm can be helpful to design this model and how. What additional functionality can you add to this. Implement the given model using C language.arrow_forwardPlease give me correct solution.arrow_forwardCorrect answer will be upvoted else Multiple Downvoted. Don't submit random answer. Computer science. each individual has a rating chart portrayed by a variety of integers an of length n. You are currently refreshing the foundation, so you've made a program to pack these diagrams. The program functions as follows. Given an integer boundary k, the program takes the base of each adjoining subarray of length k in a. All the more officially, for a cluster an of length n and an integer k, characterize the k-pressure exhibit of an as a cluster b of length n−k+1, to such an extent that bj=minj≤i≤j+k−1ai For instance, the 3-pressure cluster of [1,3,4,5,2] is [min{1,3,4},min{3,4,5},min{4,5,2}]=[1,3,2]. A stage of length m is an exhibit comprising of m unmistakable integers from 1 to m in subjective request. For instance, [2,3,1,5,4] is a stage, however [1,2,2] isn't a change (2 shows up twice in the exhibit) and [1,3,4] is likewise not a stage (m=3 but rather there is 4 in the…arrow_forward
- can you help me with this:arrow_forwardWe have built a family tree, and each node in the family tree represents a person. We'd like to know how many members of the family are currently living in the house. Please write down the algorithm.arrow_forwardQ9-A student has to plot a graph of f(x)=z and g(y)=z in the same graph, with t as a parameter. The function he uses is O plot3(x,y,z) plot(x,y,z) disp O stem(x,y)arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education