Professional Documents
Culture Documents
and
Machine Learning
Syllabus
• UNIT - I
Introduction : Basics of problem solving, problem representation; Search Techniques: Problem size,
complexity; Uninformed search techniques- Depth, Breadth, Uniform Cost, Depth Limited, Iterative
deepening DFS.
• UNIT - II
Informed search techniques : Heuristic Based Search, Greedy Based First Search, A* Search;
Local
Search algorithms: Hill-climbing, Simulated Annealing, Genetic Algorithms.
• UNIT - IIIThe concept learning task, General-to-specific ordering of hypotheses. Version spaces.
Inductive bias.Decision Tree Learning. Rule Learning: Propositional and First-Order, Over-fitting,
Cross-Validation.
Experimental Evaluation of Learning Algorithms.
• UNIT - IV
Instance-Based Learning : k-Nearest neighbor algorithm, Radial basis functions. Case- based
learning,
K-means and Hierarchical Clustering.
• UNIT - V
Artificial Neural Networks : Linear threshold units, Perceptions, Multilayer networks and back-
propagation, recurrent networks.
• UNIT - VI
Probabilistic Machine Learning : Maximum Likelihood Estimation, MAP, Bayes Classifiers Naive
Bayes, Bayes optimal classifiers, Minimum description length principle
Text Books
• Stuart Russel and Peter Norvig; Artificial Intelligence: A Modern
Approach; Third Edition;Pearson Education, 2009
HUM RATIO
AN NAL
Systems that act like humans:
Turing Test( 1950 by Alen
Turing)
• “The art of creating machines that perform functions that require intelligence when
performed by people.” (Kurzweil)
• “The study of how to make computers do things at which, at the moment, people
are better.” (Rich and Knight)
Systems that act like humans
?
• You enter a room which has a computer terminal. You have a fixed period of time to type
what you want into the terminal, and study the replies. At the other end of the line is either a
human being or a computer system.
• If it is a computer system, and at the end of the period you cannot reliably determine
whether it is a system or a human, then the system is deemed to be intelligent.
Systems that act like humans
• Knowledge Representation: collect detailed information about the problem and define all
possible techniques.
• Problem-solving: Selection of best techniques.
Measuring Problem Solving Performance:
• Completeness: Is the algorithm guaranteed to find a solution when there is one?
• Optimality: Does the strategy find the optimal ?
0 0 0
0 0 0 3 2
3 0 7
0 3 3 2
3
4 2 11
0 2 3
2 0 10
3 0
3 3
Final/Goal state
0
4 2 2 0
2
Exercise
Uniform Cost
Depth Limited
802
17 4 LGA
337
2555 3 138 10
HNL
LAX 1233 DF 7
1120 9 9
W MIA
Directed graphs
• directed graph ("digraph"): One where edges are one-way
connections between vertices.
– If graph is directed, a vertex has a separate in/out degree.
– A digraph can be weighted or unweighted.
– Is the graph below connected? Why or why not?
a b
c d e
f g
Digraph example
• Vertices = UW CSE courses (incomplete list)
• Edge (a, b) = a is a prerequisite for b
12 13 14 14 45
0 1 2 0 0
14 15
3 4
33 31
34 35 37 37
1 1 33
34 1 1 3 4
40 31 2 35 33
3 2 4 3
2 41 41 41
43 44 44 42 44
1 6 4 1 0 45 0 3 4
41 41
1 5 7
45
2
Digraph example
• Vertices = UW CSE courses (incomplete list)
• Edge (a, b) = a is a prerequisite for b
12 13 14 14 45
0 1 2 0 0
14 15
3 4
33 31
34 35 37 37
1 1 33
34 1 1 3 4
40 31 2 35 33
3 2 4 3
2 41 41 41
43 44 44 42 44
1 6 4 1 0 45 0 3 4
41 41
1 5 7
45
2
Digraph example
• Vertices = UW CSE courses (incomplete list)
• Edge (a, b) = a is a prerequisite for b
12 13 14 14 45
0 1 2 0 0
14 15
3 4
33 31
34 35 37 37
1 1 33
34 1 1 3 4
40 31 2 35 33
3 2 4 3
2 41 41 41
43 44 44 42 44
1 6 4 1 0 45 0 3 4
41 41
1 5 7
45
2
Breadth First Search
Example:
Take a weighted graph and start/goal node an input. Your job is to find
goal node. Print the total cost and path.
Basic
Fundamentals
First iteration
s will be popped from the queue
Neighbors of s i.e. 1 and 2 will be traversed
1 and 2, which have not been traversed earlier, are traversed. They will be:
Pushed in the queue
1 and 2 will be marked as visited
Second iteration
1 is popped from the queue
Neighbors of 1 i.e. s and 3 are traversed
s is ignored because it is marked as 'visited'
3, which has not been traversed earlier, is traversed. It is:
Pushed in the queue
Marked as visited
Third iteration
2 is popped from the queue
Neighbors of 2 i.e. s, 3, and 4 are traversed
3 and s are ignored because they are marked as 'visited'
4, which has not been traversed earlier, is traversed. It is:
Pushed in the queue
Marked as visited
Fourth iteration
3 is popped from the queue
Neighbors of 3 i.e. 1, 2, and 5 are traversed
1 and 2 are ignored because they are marked as 'visited'
5, which has not been traversed earlier, is traversed. It is:
Pushed in the queue
Marked as visited
Fifth iteration
4 will be popped from the queue
Neighbors of 4 i.e. 2 is traversed
2 is ignored because it is already marked as 'visited'
Sixth iteration
5 is popped from the queue
Neighbors of 5 i.e. 3 is traversed
3 is ignored because it is already marked as 'visited'
Breadth First
Search
Breadth First
Search
Breadth First
Search
Step 1: Take an Empty Queue.
Step 2: Select a starting node (visiting a node) and insert it into the Queue.
Step 3: Provided that the Queue is not empty, extract the node from the
Queue and insert its child nodes (exploring a node) into the Queue.
Step 4: Print the extracted node.
Don’t worry if you’re confused, we shall understand this with an example.
Take a look at the below graph, we will use the Breadth-First Search
algorithm to traverse through the graph.
Breadth First
Search
• Assign ‘a’ as the root node and insert it into the Queue.
• Extract node ‘a’ from the queue and insert the child nodes of ‘a’, i.e., ‘b’
and ‘c’.
• Print node ‘a’.
• The queue is not empty and has node ‘b’ and ‘c’. Since ‘b’ is the first
node in the queue, let’s extract it and insert the child nodes of ‘b’, i.e.,
node ‘d’ and ‘e’.
• Repeat these steps until the queue gets empty. Note that the nodes
that are already visited should not be added to the queue again.
Applications Of Breadth-First
Search Algorithm
• GPS Navigation
systems
• Broadcasting
Depth First Search
Depth First
Search
• Depth First Search (DFS) algorithm traverses a graph in a depth ward
motion and uses a stack to remember to get the next vertex to start a
search, when a dead end occurs in any iteration.
Depth First
Search
• Rule 1 − Visit the adjacent unvisited vertex. Mark it as visited. Display it.
Push it in a stack.
• Rule 2 − If no adjacent vertex is found, pop up a vertex from the stack. (It
will pop up all the vertices from the stack, which do not have adjacent
vertices.)
• Rule 3 − Repeat Rule 1 and Rule 2 until the stack is empty.
Depth First
Search
Depth First
Search
Depth First
Search
Uniform Cost
Uniform Cost
Search
• Uniform-cost search is a searching algorithm used for traversing a
weighted tree or graph. This algorithm comes into play when a different
cost is available for each edge.
• The primary goal of the uniform-cost search is to find a path to the goal
node which has the lowest cumulative cost.
• Uniform-cost search expands nodes according to their path costs form the
root node.
• It can be used to solve any graph/tree where the optimal cost is in
demand. A uniform-cost search algorithm is implemented by the priority
queue.
• It gives maximum priority to the lowest cumulative cost. Uniform cost
search is equivalent to BFS algorithm if the path cost of all edges is the
same.