Docsity

Introduction to Artificial Intelligence: Concepts, Problem Solving, and Techniques, Exams of Artificial Intelligence

Toggle sidebar
bg1
Introduction: What is AI? History & Applications, Artificial intelligence as representation
& Search, Production system, Basics of problem solving: problem representation paradigms,
defining problem as a state space representation, Characteristics
ALL QUESTION are very very IMPORTANT
Define AI: Artificial Intelligence is defined as a branch of computer science that is concerned
with the automation of the intelligent behavior .In simple term AI is a way of making a computer
think intelligently.
OR A.I. can be defined as the artificial brain having capability of thinking and understanding.
OR A.I. is branch of computer science concerned with the study and creation of computer
system that exhibits some form of intelligence.
OR AI Intelligence which is present in artificial device
Strong artificial intelligence states that a computer with the right program can in fact be mental
(like a human being)
Weak artificial intelligence just aims to solve problems, not necessarily to be mental or model
human behavior.
***********************************************************************
Q. What are task domain of AI?****
Task domain of AI
1. Mundane Task
a. Perception
1)Vision 2)Speech
b. Natural Language
1) Natural language understanding 2) Natural language Generation
3) Natural language translation
c. Common sense reasoning
d. Robort control
2. Formal tasks
a. Games
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
Discount

On special offer

Partial preview of the text

Download Introduction to Artificial Intelligence: Concepts, Problem Solving, and Techniques and more Exams Artificial Intelligence in PDF only on Docsity!

Introduction: What is AI? History & Applications, Artificial intelligence as representation & Search, Production system, Basics of problem solving: problem representation paradigms, defining problem as a state space representation, Characteristics

ALL QUESTION are very very IMPORTANT

Define AI: Artificial Intelligence is defined as a branch of computer science that is concerned

with the automation of the intelligent behavior .In simple term AI is a way of making a computer

think intelligently.

OR A.I. can be defined as the artificial brain having capability of thinking and understanding.

OR A.I. is branch of computer science concerned with the study and creation of computer system that exhibits some form of intelligence.

OR AI Intelligence which is present in artificial device

Strong artificial intelligence states that a computer with the right program can in fact be mental (like a human being ) Weak artificial intelligence just aims to solve problems, not necessarily to be mental or model human behavior_._

Q. What are task domain of AI?****

Task domain of AI

  1. Mundane Task

a. Perception

1)Vision 2)Speech

b. Natural Language

  1. Natural language understanding 2) Natural language Generation

  2. Natural language translation

c. Common sense reasoning

d. Robort control

  1. Formal tasks

a. Games

  1. Chess 2)checkers 3)Go

b. Mathematics

  1. Geometry 2)Logic 3)Integral calculus
  2. Expert task

a. (^) Engineering b) Manufacturing planning c) Financial analysis

Q. What are different AI problem Domains.

Ans: Problems of AI Domain

  1. Mundane Tasks
  2. Formal Tasks
  3. Expert Tasks

Mundane Tasks

  • Perception -Vision
    • Speech
  • Natural Language -Understanding
    • Generation
    • Translation
  • Commonsense reasoning
  • Robot Control

Formal Tasks Games

  • Chess, Backgammon, Checkers, Go Mathematics
  • Geometry, Logic, Integral Calculus, Proving properties of programs

Expert Tasks Engineering Design, Fault Finding, Manufacturing Planning Scientific Analysis Medical Diagnosis Financial Analysis

**Q: what are the Important AI Technique 6M********

Ans: Important AI Technique:-

Inference engine : It employs inference mechanism and gives answers to the queries. The inference engine carries out a search throughout the knowledge base either to prove hypothesis or to arrive at conclusion. Depending on the nature of problem and the nature of knowledge contained in knowledge base, a proper inference mechanism is selected and search is carried out. The inference mechanism derives new fact and state that the goals were achieved.

User Interface: The user interface provides the needed facilities for the user to communicate with the system for the following aspects:

  1. To get solution for their problem
  2. To know the private knowledge of the system
  3. To get solve explanations for the special queries

**Q. Explain problem characteristics of AI*********

To choose an appropriate method for a particular problem:

  • Is the problem decomposable?
  • Can solution steps be ignored or undone?
  • Is the universe predictable?
  • Is a good solution absolute or relative?
  • Is the solution a state or a path?
  • What is the role of knowledge?
  • Does the task require human-interaction? Is the problem decomposable?
  • Can the problem be broken down to smaller problems to be solved independently?
  • Decomposable problem can be solved easily.
  • Suppose one want to solve the problem of computing the expression x2+3x+sin2x.cos2x dx One can solve this problem by breaking it down into 3 smaller problems, each of which one can solve by using a small collection of specific rules. figure shows the problem tree that will generated by process of problem decomposition as it can be exploited by a simple recursive integration program that works as follows:

At each step, it checks to see whether the problem it is working on is immediately solvable. If so then answer return directly. If the problem is not easily solvable, the integrator checks to see whether it can decompose the problem into smaller problem. if it can, it creates those problem and calls itself recursively on them. Using this technique of problem decomposition one can often solve very large problem easily

Can solution steps be ignored or undone?

Theorem Proving: suppose one is trying to prove mathematical theorem. one proceed first by proving the lemma that one think will be useful. eventually one realize that the lemma is not help at all. are one in trouble?.NO.everything one need to know to prove the theorem is still true and in memory. A lemma(anything which is received) that has been proved can be ignored for next steps.

Ignorable!

Playing Chess

Moves cannot be retracted.

Irrecoverable!

Is the universe predictable(knowable)?

The 8-Puzzle

Every time we make a move, we know exactly what will happen.

Certain outcome!

Is the universe predictable?

Some Examples: 1) The 8 puzzle problem

Problem statement: The 8 puzzle problem consists of a 3*3 grid with 8 numbered tiles and a blank space.A tile adjustment to the blank space can slide into the space either horizontally or vertically.The objective is to reach a specified state.

  • The standard formulation is given as : State: A state description specifies the location of each of the 8 tiles and the blank in one of the 9 squares

Initial State: Any state can be designated as the initial state.

Successive function: There exists four action.Blank moves left, right, up, down

Goal state :It is the state which is to be achieved.

Path Cost : each move of the blank costs 1

2) Missionaries and cannibals problem

  • Three missionaries (one who sent for mission) and 3 cannibals (A person who eat the flesh) are on one side of river ,along with a boat that can hold 1 or 2 people.Find a way to get everyone to the otherside , without ever leaving a group of missionaries outnumbered by cannibals. (If number of C > no of M then aim fail)

0 represents M

X represents C

around, carry other things around, reach for the bananas, and wave a stick in the air. What is the best sequence of actions for the monkey to take to acquire the lunch? Ans:

Initial state: monkey on ground with empty hand bananas suspended

Actions:

climb chair/get off

grab X

wave X

eat X

Goal state: monkey eating

  1. *8 Queen problem********** / there are different solutions write all in exam if asked */
  • states -any arrangement of 0 to 8 queens on the board
  • initial state: no queens on the board
  • Successor function or operator or actions :Add queen to any empty square
  • goal test 8 queens on the board, none are attacked.
  • path cost 1 per move

Formulation2:

A state is an arrangement of 0 to 8 queens with none attacked

Operator: place a queen in the leftmost empty column

Goal state: an arrangement of 8 queens on board with none attacked

Add a queen to any square in the leftmost empty column

Formulation-

states -any arrangement of k queens in the first k rows such that none are attacked

  • Initial state: no queens on the board
  • Successor function or operator or actions :Add queen to the (k+1)th row such that none are attacked
  • goal test 8 queens on the board, none are attacked.
  • Suppose k=3 i.e. one queen is placed somewhere in place row1,second queen placed somewhere in row2,third queen placed in row3.
  • The successor function is add a queen (k+1)th row such that none attacked so take 4th queen and place such that no attack each other.

Q: notes on Heuristic search(informed search)

**Q: Explain BFS and DFS with advantages and disadvantages.*********

Algorithm BFS:

1.Create a variable called NODE-LIST and set it to the initial state.

2.Until a goal state is found or NODE-LIST is empty do:

  • Remove the first element from NODE-LIST and call it E. If NODE-LIST was empty, quit.
  • For each way that each rule can match the state described in E do:
    • Apply the rule to generate a new state.
    • (^) If the new state is a gold state, quit and return this state.
    • Otherwise, add the new state to the end of NODE-LIST.

Algorithm DFS:

  1. If the initial state is a goal state, quit and return success.
  2. Otherwise, do the following until success or failure is signaled:
    • Generate a successor, E, of the initial state. If there are no more successors, signal failure.
    • Call Depth-First Search with E as the initial state.
    • If success is returned, signal success. Otherwise continue in this loop.

Advantages of depth-first search:

  • (^) Simple to implement;
  • Needs relatively small memory for storing the state-space.
  • May find a solution without examine much of search space
  • DFS seen quickly searches deeply into problem space.If it is known that solution path will be long then DFS is a good choice

Disadvantages of depth-first search:

  • Can sometimes fail to find a solution;
  • Not guaranteed to find an optimal solution;
  • Can take a lot longer to find a solution.

Advantages of breadth-first search:

  • (^) Guaranteed to find a solution (if one exists);
  • Depending on the problem, can be

guaranteed to find an optimal solution.

*BFS does not suffer from any potential infinite loop problem , which may cause the computer to crash

Disadvantages of breadth-first search:

  • More complex to implement;
  • Needs a lot of memory for storing the state space if the search space is high
  • Inefficient for deep solution i.e. when the search space is large the search performance will be poor

Q: Explain Production system and control strategies.

Ans: AI programs in a way that facilities describes and performing the search process.

Production system provides such structure.

A production system consists of :

a. A set of rules each consisting of a left side that determines the applicability of the rule and a right side that describes the operation to be performed it the rule is applied. b. One or more knowledge/data bases that contains whatever information is appropriates for a particular task. c. A control strategy that specifies the order in which the rules will be compared to the databases and a way of resolving the conflicts that arrives when several rules make at once.

A production system consists of rules and factors. Knowledge is encoded in a declarative from which comprises of a set of rules of the form Situation ------------ Action

SITUATION that implies ACTION.

IF the initial state is a goal state THEN quit.

The major components of an AI production system are

i. A global database

ii. A set of production rules and

iii. A control system

The goal database is the central data structure used by an AI production system. The production system. The production rules operate on the global database. Each rule has a precondition that is either satisfied or not by the database. If the precondition is satisfied, the rule can be applied. Application of the rule changes the database. The control system chooses which applicable rule should be applied and ceases computation when a termination condition on the database is satisfied. If several rules are to fire at the same time, the control system resolves the conflicts. Four classes/types of production systems:-

  1. A monotonic production system
  2. A non monotonic production system
  3. A partially commutative production system
  4. A commutative production system.

Advantages of production systems:-

  1. Production systems provide an excellent tool for structuring AI programs.
  2. Production Systems are highly modular because the individual rules can be added, removed or modified independently.
  3. The production rules are expressed in a natural form, so the statements contained in the knowledge base should the a recording of an expert thinking out loud. Disadvantages of Production Systems:-

One important disadvantage is the fact that it may be very difficult analyse the flow of control within a production system because the individual rules donโ€™t call each other.

Production systems describe the operations that can be performed in a search for a solution to the problem.

Production System Characteristics: We have argued that production systems are a good way to describe the operations that can be performed in a search for a solution to a problem.

  1. Can production systems, like problems, be described by a set of characteristics that shed some light on how they can easily be implemented?
  2. If so, what relationships are there between problem types and the types of production system best suited to solving the problems? There are different classes of the production system:

A monotonic production system: It is a production system in which the application of a rule never prevents the later application of another rule that could also have been applied at the time first rule was selected. A non-monotonic production system: A non-monotonic production system is one in which this is not true.

Partially commutative production system: A partially commutative production system is a production system with the property that if the application of a particular sequence of rules transforms state x into state y then any permutation of those rules that is allowable (i.e. each rules preconditions are satisfied when it is applied) also transforms state x into state y. Partially commutative, monotonic production systems are useful for solving ignorable problems. A commutative production system: A commutative production system is a production system that is both monotonic and partially commutative

Q.Explain A procedure*

A Procedure:* A* (pronounced as "A star") is a computer algorithm that is widely used in pathfinding and graph traversal. The algorithm efficiently plots a walkable path between multiple nodes, or points, on the graph.

  • Heuristics that estimate merits of node we generate,this enables to find more promising path f(n)
  • Formula: f(n)=g(n)+h(n)
  • (^) Function g is a measure of cost of getting from initial node to current node. It is not estimate ,it is exact
  • On each node, First node tells how much distance get covered and 2nd^ number tells estimated distance to the goal city/node.

Now at S, We have A and D. On A , A says we have 2(Distance between S &A)+2(Estimated distance between A and G)= Similarly D says 3+6=9 so we select A

From A, We have B and D. On A , B says we have 2+3(Distance S-A-B)+3(Estimated distance between B and G)=

From B, C and E gets explore. C tells, 8(S-A-B-C)+5= E tells, 9(S-A-B-E)+5=

The path which are going from B crossing the limit of 8 which was estimate.so as per branch and bound discard it

On D ,we have 12; On A ,we have 9; On D ,we have 9

D tells, goal is 9km far away.our estimation was 8.Increase the levelof estimation..Go from S to D. From D,We have A and E, both have same value i.e.

From D,We have A and E, both have same value i.e.9. Select any one randomly say A. From A there is B which is 13.Discard it. From E ,Two option i.e. E(11) and F(8) then F to G

PROBLEM REDUCTION with AO * Algorithm / AND - OR graphs

  • When a problem can be divided into a set of sub problems, where each sub problem can be solved separately and a combination of these will be a solution, AND-OR graphs or AND - OR trees are used for representing the solution.
  • problem reduction generates AND arcs
  • One AND are may point to any number of successor nodes. All these must be solved so that the arc will rise to many arcs, indicating several possible solutions. Hence the graph is known as AND - OR instead of AND