What is A* algorithm, function f(n)=g(n)+h(n)
The A* algorithm is a popular pathfinding and graph traversal algorithm that is often used in many fields of computer science due to its completeness, optimality, and optimal efficiency.
What is an Admissible heuristic?
An admissible heuristic is one that never overestimates the cost of reaching the goal, ensuring the optimality of the A* algorithm.
What are Propositional functions?
Propositional functions are logical statements that can be true or false depending on the values of their variables.
What is Propositional logic?
Propositional logic is a branch of logic that deals with propositions which can be either true or false.
What is Abstraction in search-based problems?
Abstraction in search-based problems involves simplifying the problem by reducing its complexity, usually by ignoring some details.
What is Information gain?
Information gain is a measure used in decision trees to determine which feature to split the data on at each step.
What is Python syntax?
Python syntax refers to the set of rules that define how a Python program is written and interpreted.
What is a Supervised learning algorithm?
A supervised learning algorithm is a type of machine learning algorithm that is trained on labeled data.
What is Breadth first search, Depth first search?
Breadth-first search (BFS) and Depth-first search (DFS) are fundamental graph traversal algorithms.
What is Euclidean distance, Manhattan distance?
Euclidean distance is the straight-line distance between two points in Euclidean space. Manhattan distance is the sum of the absolute differences of their coordinates.
What is K-Means?
K-Means is a clustering algorithm that partitions the data into K distinct clusters based on feature similarity.
What are States?
States represent the various configurations that a problem or environment can be in.
What is an agent? Give example
An agent is an entity that perceives its environment and takes actions to achieve its goals.
What is a Robot agent? Give example
A robot agent is a physical entity that interacts with the physical world.
What is a Software agent? Give example
A software agent is a program that performs tasks on behalf of a user.
What is a Rational agent? Give example
A rational agent acts to achieve the best outcome or, when there is uncertainty, the best expected outcome.
What is Single vs Multi agents? Give example
Single-agent systems involve one agent operating in the environment, while multi-agent systems involve multiple agents that may collaborate or compete.
What are the six agent types and explain them
The six types of agents are: Simple Reflex Agents, Model-Based Reflex Agents, Goal-Based Agents, Utility-Based Agents, Learning Agents, and Rational Agents.
What does PEAS stand for?
PEAS stands for Performance measure, Environment, Actuators, and Sensors.
What four things does rationality depend on?
Rationality depends on: the performance measure that defines the criterion of success, the agent's prior knowledge of the environment, the actions the agent can perform, and the agent's percept sequence to date.
What is a fully observable environment? Give example
A fully observable environment is one where the agent has access to the complete state of the environment at each point in time.
What is a partially observable environment? Give example
A partially observable environment is one where the agent does not have access to the complete state of the environment.
What is a Deterministic environment? Give example
A deterministic environment is one where the next state of the environment is completely determined by the current state and the action executed by the agent.
What is a Stochastic environment? Give example
A stochastic environment is one where the next state of the environment is not fully determined by the current state and the action executed by the agent.
What is an Episodic environment? Give example
An episodic environment is one where the agent's experience is divided into episodes, and each episode consists of the agent perceiving and then performing a single action.
What is a Sequential environment? Give example
A sequential environment is one where the current decision could affect all future decisions.
What is a static vs Dynamic environment? Give example
In a static environment, the environment does not change while an agent is deliberating. In a dynamic environment, the environment can change while an agent is deliberating.
What is a Discrete vs continuous environment? Give example
In a discrete environment, there are a finite number of possible states and actions. In a continuous environment, there are a potentially infinite number of states and actions.
What is a partial table and how do you make one? Give example
A partial table represents a subset of possible values or states in a truth table, often used to simplify expressions or focus on specific cases.
What is a truth table and how do you make one? Give example
A truth table is a mathematical table used in logic to compute the functional values of logical expressions based on their inputs.
What are states? Give example
States represent the various configurations that a problem or environment can be in.
What is an initial state? Give example
The initial state is the starting configuration of a problem or environment.
What is an action? Give example
An action is a possible move that changes the state.
What is a transition model? Give example
A transition model defines the outcome of each action in each state.
What is a goal test? Give example
A goal test determines whether a given state is a goal state.
What is a path cost? Give example
Path cost is the total cost of a path from the initial state to the current state.
What are the five uninformed (blind) search strategies? Give example
The five uninformed search strategies are: Breadth-first search, Depth-first search, Uniform cost search, Iterative deepening search, and Bidirectional search.
What is Breadth-first search?
Breadth-first search (BFS) is an algorithm for traversing or searching tree or graph data structures, starting from the root and exploring all nodes at the present depth level before moving on to nodes at the next depth level.
What are the properties of breadth-first search?
Properties of BFS:
  • Complete: Yes, if the branching factor is finite.
  • Time Complexity: O(b^d) where b is the branching factor and d is the depth of the shallowest solution.
  • Space Complexity: O(b^d) as it stores all nodes at the current level.
  • Optimal: Yes, if the cost is a non-decreasing function of the depth of the node.
What is Uniform cost search?
Uniform cost search (UCS) is a search algorithm that expands the least cost node first.
What are the properties of uniform cost search?
Properties of UCS:
  • Complete: Yes, if the cost of every step is greater than or equal to a positive constant.
  • Time Complexity: O(b^(1+C*/ε)) where C* is the cost of the optimal solution, b is the branching factor, and ε is the minimum edge cost.
  • Space Complexity: O(b^(1+C*/ε)), similar to time complexity.
  • Optimal: Yes, if step costs are all positive.
What is Depth-first search?
Depth-first search (DFS) is an algorithm for traversing or searching tree or graph data structures, exploring as far as possible along each branch before backtracking.
What are the properties of depth-first search?
Properties of DFS:
  • Complete: No, it may get stuck in an infinite loop.
  • Time Complexity: O(b^m) where b is the branching factor and m is the maximum depth of the search tree.
  • Space Complexity: O(bm) as it needs to store only a single path from the root to a leaf node, along with the remaining unexplored sibling nodes.
  • Optimal: No, DFS may find a suboptimal solution if it does not explore the entire search space.
What is Iterative deepening search?
Iterative deepening search (IDS) is an algorithm that repeatedly applies depth-first search with increasing depth limits.
What are the properties of iterative deepening search?
Properties of IDS:
  • Complete: Yes.
  • Time Complexity: O(b^d) where b is the branching factor and d is the depth of the shallowest solution.
  • Space Complexity: O(bd) as it needs to store only a single path from the root to a leaf node, along with the remaining unexplored sibling nodes for each iteration.
  • Optimal: Yes, if the path cost is a non-decreasing function of the depth of the node.
What is Bidirectional search?
Bidirectional search is a search algorithm that runs two simultaneous searches: one forward from the start node and one backward from the goal node, stopping when the two searches meet.
What are the properties of bidirectional search?
Properties of Bidirectional Search:
  • Complete: Yes, if both searches use a BFS strategy.
  • Time Complexity: O(b^(d/2)) where b is the branching factor and d is the depth of the shallowest solution.
  • Space Complexity: O(b^(d/2)) as it needs to store the nodes at the frontier of the search.
  • Optimal: Yes, if both searches use BFS and the path cost is uniform.
What is Machine learning? Give example
Machine learning is a field of artificial intelligence that uses statistical techniques to give computer systems the ability to learn from data and make decisions without being explicitly programmed.
What is Supervised learning? Give example
Supervised learning is a type of machine learning where the model is trained on labeled data, which means that each training example is paired with an output label.
What is the labelled data of supervised learning? Give example
Labeled data in supervised learning refers to input data that is tagged with the correct output. The learning algorithm uses these labels to learn the mapping from input to output.
What is the classification and regression of supervised learning? Give example
Classification and regression are types of supervised learning. Classification predicts discrete labels, while regression predicts continuous values.
What is Spam filtering?
Spam filtering is the process of identifying and separating spam emails from legitimate emails using machine learning algorithms and rule-based approaches.
What is labeled vs unlabeled data? Give example
Labeled data has been tagged with one or more labels identifying certain characteristics or categories, whereas unlabeled data has no such tags.
What is a decision tree? Give example
A decision tree is a model used for classification and regression tasks that splits the data into subsets based on feature values, creating a tree-like structure of decisions.
What is information gain as entropy reduction? Give example
Information gain measures the reduction in entropy or uncertainty about the dataset when a feature is used to split the data.
What is the binary classification of entropy?
Binary classification of entropy is a measure of the uncertainty or impurity in a dataset with two classes, often used in decision trees to evaluate splits.
What is the Gini index? Give example
The Gini index is a measure of statistical dispersion, representing the inequality of a distribution, often used to evaluate splits in decision trees.
What is Clustering? Give example
Clustering is a machine learning technique that groups a set of objects in such a way that objects in the same group (cluster) are more similar to each other than to those in other groups.
What is Cluster analysis? Give example
Cluster analysis is the process of partitioning a set of data into groups (clusters) such that data points within the same group are more similar to each other than to those in other groups.
What are some applications of clustering? Give example
Applications of clustering include market segmentation, social network analysis, image segmentation, and anomaly detection.
What are the types of clustering?
Types of clustering include:
  • Hierarchical Clustering
  • K-Means Clustering
  • DBSCAN (Density-Based Spatial Clustering of Applications with Noise)
  • Mean Shift Clustering
What is K-Means? Give example
K-Means is a clustering algorithm that partitions data into K clusters, with each data point belonging to the cluster with the nearest mean (centroid).
What is the K-Mean algorithm? Give example
The K-Mean algorithm involves:
  1. Initializing K centroids randomly.
  2. Assigning each data point to the nearest centroid.
  3. Recomputing the centroids as the mean of the assigned points.
  4. Repeating the assignment and recomputation steps until convergence.
What are the centroid and objective functions using Euclidean distance?
In K-Means, the centroid is the mean of all points in a cluster, and the objective function is to minimize the sum of squared Euclidean distances between points and their respective centroids.
What is Knowledge based systems (KBS)?
Knowledge-based systems (KBS) are computer programs that use artificial intelligence to solve complex problems by reasoning through bodies of knowledge, represented mainly as if-then rules.
What is the KBS architecture? Give example
The architecture of a KBS typically includes a knowledge base, an inference engine, and a user interface.
What are Expert systems? Give example
Expert systems are a type of KBS designed to mimic the decision-making abilities of a human expert. They are used to solve specific problems within a particular domain.
What are the applications of expert systems? Give example
Applications of expert systems include medical diagnosis, financial forecasting, customer support, and engineering diagnostics.