Professional Documents
Culture Documents
Answer:
Step 2: Count up the value of the pieces vs. the value of your opponent's
pieces with the following rule:
Answer:
Step 2: Look at all the arcs coming out of the starting node that have not
been visited and choose the next closest node.
Step 3: Repeat the process until all the nodes have been visited at least
once.
Step 4: Check and see if all nodes are visited. If so return to the starting
point which gives us a tour.
Step 5: Draw and write down the tour, and calculate the distance of the
tour.
Q2. Can the following facts be represented in the predicate logic in the form
of well-formed formulae's? If yes then How ?
Answer: ∀X:Bird(X)→Fly(X)
Q3. To solve the following problems, tell whether the search should
proceed forward or backward
Ans.
“ Best First Search is a combination of Breadth first and depth first search”
If all operators are given the same cost (so that you consider them to have
the same cost equal to 1), then:
Best-First search, on the other hand, uses an OPEN list where nodes are
sorted in increasing order of f(n)=g(n)+h(n) where: g(n) is the cost of the
current path from the start node to node n, and h(n) is an estimate of the
remaining effort to reach the goal from n. As such, f(n) stands for an
estimate of the best path from the start node to the goal that goes through
node n. However, in contrast with the case of uninformed search
algorithms, Best-first search algorithms halt only when the solution is about
to be expanded!
b) Disjunction of variables
c) Conjunction of literals
d) Conjunction of variables
a) A set of Rule
b) A sequence of steps
a) Initial state
b) Last state
c) Intermediate state
c) Normal form
a) DFS
b) BFS
c) Linear Search
a.~ (P ˅ Q) ˄ ~ (Q ˅ P)
b.(~ P ˅ Q) ˄ (~ Q ˅ P)
c.(P ˅ Q) ˄ (Q ˅ P)
d.~ (P ˅ Q) → ~ (Q ˅ P)
Ans. (b) (~ P ˅ Q) ˄ (~ Q ˅ P)