Cis 561 Unit 1 Assignment 2

Superior Essays
CIS 561 Homework #2

Hussain ul Abideen 01617974

Question#1:
Solution:
State: (a,b) for liters in jugs 1 and 2 Integer 0 to 4 (a,b) : 0<= 7,

Initial state:- (Black1,Black2,Black3) : (1,2,3) or (1,3,2) or (2,1,3) or (2,3,1) or (3,2,1) or (3,1,2) (white1,white2,white3) : (5,6,7) or (5,7,6) or (6,5,7) or (6,7,5) or (7,6,5) or (7,5,6) (Blank): (4)

Goal state:- (Black 1, Black 2, Black 3) : (5,6,7) or (5,7,6) or (6,5,7) or (6,7,5) or (7,6,5) or (7,5,6) (white1,white2,white3) : (1,2,3) or (1,3,2) or (2,1,3) or (2,3,1) or (3,2,1) or (3,1,2) (Blank): (4)

Operations:- (part1)
Shift black tile with blank tile which is next left to black tile,
Shift black tile with blank tile which is next right to black tile,
Shift white tile with blank tile
…show more content…
g(n) is just a multiple of depth n. Thus, breadth-first search and uniform-cost search would behave the same in this case f(n) = g(n) = 1*(depth of n)

b) Greedy search is a special case of best-first search  TRUE
Because loop is start again to validating greedy search as a special case of Breadth First Search, if we have a successor and its parent node it have to be in the front line which clamps the open list.
c) Uniform-cost search is a special case of A∗ search.  TRUE
Heuristic is a constant function or h (n) =0 uniform cost search will produce the same result as A*Search.

d) Breadth-first search always expands at least as many nodes as A * search with an admissible heuristic.  FALSE Because A* search uses the optimal path with very fewer stretched nodes and Breadth First Search expands more nodes.
e) Depth-first search may expand less number of nodes than A * search with an admissible heuristic. 

Related Documents

  • Improved Essays

    +*Description+* As a Box Office Manager, I want to register my license key, so that I can certify my access to view and manage data within database context(s) +* In order for the user to enter a software key, which is used to verify that the user is licensed to access a database context. This is to enforce security of our application by ensuring that the user has got access to the client’s data. +*Acceptance Criteria+* □ User must be able to enter their first and last name □ User Must be able to enter a license key □ User must be able to enter their BackOffice Login ID □ User must be able to accept the End User License Agreement* □ System _shall_ validate the authenticity of the license key □ System _shall_ display an error message is the…

    • 371 Words
    • 2 Pages
    Improved Essays
  • Decent Essays

    a) The process of which seats the House of Representatives are distributed according to the most recent census. b) The process of redrawing the districts boundaries when a state has my representatives than a district, this occurs every 10 years. c) One goal of politicians when they gerrymander during redistricting is to increase the strength of a political party and minimize the strength of an opposition party.…

    • 178 Words
    • 1 Pages
    Decent Essays
  • Decent Essays

    1. Purpose: To identify Personnel Accountability, Strength Reporting and Personnel Information Management. 2. Facts: a. Personnel Readiness Management encompasses a number of things in determining current combat capabilities, projecting future requirements as well as assessing individual readiness. b.…

    • 204 Words
    • 1 Pages
    Decent Essays
  • Improved Essays

    This introductory chapter outlines the motivations relating to the titled project. The motivation elucidates the challenges that are faced in the aerospace industry with carbon emissions and how a box wing aircraft is best suited for these challenges. It also addresses the advantages of using topology optimisation for the best suited design optimisation for an unconventional box wing aircraft. The major advantages of topology optimisation are stated and justified based on its suitability for this project. Following on, the aims and objectives, overview, project scope and structure of this thesis are outlined.…

    • 976 Words
    • 4 Pages
    Improved Essays
  • Improved Essays

    Best-First Search Paper

    • 1346 Words
    • 6 Pages

    Beam search is an informed algorithm for searching a graph that extends the Breadth-First search (Jungwirth, 2006). The Breadth-First search is essentially a special-case Best-First search where the evaluation function, f(n) is the same as the heuristics function, h(n) (JONES, 2008). Therefore in order to properly discuss Beam search, there is the need for a brief introduction to Best-First algorithm. The Best-First search traverses a tree from top to bottom and searches for nodes on the same level first before descending to the next level.…

    • 1346 Words
    • 6 Pages
    Improved Essays
  • Great Essays

    Traveling Salesman Problem (TSP) is one of combinatorial optimization problems. X TSP is NP-hard problem which defined as a set of cities and each city should be visited once with minimum tour length. This paper solved this problem using Firefly Algorithm (FA) and k-means clustering by three steps: cluster the nodes, finding optimal path in each cluster and connect the clusters. The first step is to divide all nodes into sub-problems using k-means clustering, the second step is to use FA to find optimal path in each cluster, finally connect all clusters and find the path between them. The experimental results show that FA with k-means clustering has better results than ant colony algorithm using clustering and FA in most of instances.…

    • 1438 Words
    • 6 Pages
    Great Essays
  • Superior Essays

    Mobile Lazy Guards Kailan Patel Nottingham Trent University N0672831 December 10, 2017 ABSTRACT The Art Gallery problem is well known in computational geometry and a real life problem is the Lazy Guard Problem; “Given a polygon, choose a minimum number of stations (points) in the polygon such that a mobile guard that visits all stations will guard the entire polygon.” [1] Furthermore, a polygon that can be guarded with an X number of stations is said to be lazy X guardable.…

    • 1277 Words
    • 6 Pages
    Superior Essays
  • Improved Essays

    When applied to ELD problem, the solution produced by the algorithm is represented by the location of source of nectar while the amount of nectar represents the quality (fitness) of the solution. Employee bees fly around in search of source of nectar (representing trial in a search space) and select their preferred source of nectar based on their experience. Once search is completed, they share their findings (source) with the onlooker bees waiting in the hive. The onlooker bees then make a probabilistic selection of new source of nectar based on the information received from the employee bees. Only if the amount of nectar of the new source is higher than that of the old one, the onlookers choose the new position.…

    • 1382 Words
    • 6 Pages
    Improved Essays
  • Superior Essays

    CHAPTER 4 PSO AND GA TECHNIQUE 4.1 Moth Flame Optimization In the proposed MFO algorithm, I assumed that the candidate solutions are moths and the problem’s variables are the position of moths in the space. Therefore, the moths can fly in 1-D, 2-D, 3-D, or hyper dimensional space with changing their position vectors. Since the MFO algorithm is a population-based algorithm. It should be noted here that moths and flames are both solutions.…

    • 1603 Words
    • 7 Pages
    Superior Essays
  • Improved Essays

    A COMPARITIVE STUDY OF NEAREST NEIGHBOUR ALGORITHM AND GENETIC ALGORITHM IN SOLVING TRAVELLING SALESMAN PROBLEM Ajaz Ahmed Khan Electronics and communication department SSGI FET Bhilai, India ajz70277@gmail.com Mrs. Himani Agrawal Electronics and communication department SSGI FET Bhilai, India Abstract—In this paper, we have used two algorithms, i.e. the Nearest Neighbor algorithm and Genetic Algorithm to solve the Travelling Salesman problem. The Travelling Salesman problem is a widely studied problem in computational mathematics. In the Travelling Salesman problem, a salesman has to visit all the cities first and then move to the same city from where it has started its whole journey.…

    • 1906 Words
    • 8 Pages
    Improved Essays
  • Improved Essays

    Mlab Simulation Paper

    • 756 Words
    • 4 Pages

    This section demonstrates and validates the proposed distributed multi-agent area coverage control reinforcement learning algorithm (MAACC-RL) via numerical simulations. The approximate/adaptive dynamic programming (ADP) algorithm implemented for MAACC-RL uses a recursive least-squares solution. To demonstrate the effectiveness of the proposed MAACC algorithm, a MATLAB simulation is conducted on a group of five agents placed on a 2D convex workspace Ω⊂R^2 with its boundary vertices at (1.0,0.05), (2.2,0.05), (3.0,0.5), (3.0,2.4), (2.5,3.0), (1.2,3.0), (0.05,2.40), and (0.05,0.4) m. Agents ' initial positions are at (0.20,2.20), (0.80,1.78), (0.70,1.35), (0.50,0.93), and (0.30,0.50) m. The sampling time in all simulations is chosen to be 1 s and the simulation is conducted for 180 s. A moving target inside the workspace characterizes time-varying risk density with…

    • 756 Words
    • 4 Pages
    Improved Essays
  • Improved Essays

    1) Linked Cluster Algorithm (LCA) [5], [6], [7]: LCA, was one of the initial clustering algorithms evolved. It was primarily developed for wired sensors, but later applied in wireless sensor networks. In LCA, a unique ID number is allotted to each node and has two means of becoming a cluster head. The first way is that if the node has the greatest ID number in the set including all neighbor nodes and the node itself.…

    • 930 Words
    • 4 Pages
    Improved Essays
  • Improved Essays

    SOFTWARE ENGINEERING JAMESTER C GO BS COE 5A 3.1. Reread “The Manifesto for Agile Software Development” at the beginning of this chapter. Can you think of a situation in which one or more of the four “values” could get a software team into trouble? Manifesto for agile software development: 1. Individual and interactions over Process and Tools.…

    • 1516 Words
    • 7 Pages
    Improved Essays
  • Improved Essays

    swarm intelligence MARIAPPAN J Ramesh G.J National engineering college, kovilpatti National engineering college, kovilpatti 3rd year CSE 3rd year CSE mariappanjeyachandran@gmail.com rameshram.gj@gmail.com +91 8056575142 +91 9500985506 Introduction:…

    • 1758 Words
    • 8 Pages
    Improved Essays
  • Improved Essays

    The travelling salesman problem sets up a benchmark for comparison test for different computational methods. Even though the problem is easily expressed, its solution is computationally difficult. A salesperson has a task to take a closed round tour of a mentioned number of cities. All these mentioned cities are connected to each other by means of roads and a criterion of Hamilton is that, each city can be visited only once. The main aim of program is to obtain minimum optimal tour length by the optimization of given problem.…

    • 864 Words
    • 4 Pages
    Improved Essays