AI ML Theory Fixed
AI ML Theory Fixed
A* Algorithm is a heuristic-based search algorithm commonly used for pathfinding and graph
traversal.
It combines elements of Dijkstra's algorithm and Greedy Best-First Search to find the
- g(n): the cost to reach the current node from the start node.
- h(n): the estimated cost from the current node to the goal node (heuristic).
The algorithm expands nodes based on the lowest f(n) value, balancing accuracy and
efficiency.
The algorithm simulates all possible moves and assigns scores based on game outcomes.
It chooses moves that maximize the minimum score possible, aiming to minimize losses in
adversarial settings.
Tic-Tac-Toe is a classic example, where MiniMax explores potential board states to ensure
optimal moves.
3. Implement Alpha-Beta Pruning for Game Search:
By updating alpha and beta values, the algorithm reduces the number of nodes evaluated,
The Branch and Bound algorithm systematically explores possible solutions in a search
The N-Queens Problem aims to place N queens on an N×N chessboard such that no two
In the Graph Coloring problem, we assign colors to nodes of a graph such that no two
Backtracking tries colors and undoes (backtracks) on conflicts, exploring all possible
A Sudoku Solver using Backtracking attempts to place digits in empty cells, checking if
A basic Chatbot uses Natural Language Processing (NLP) techniques to interact with users
in a conversational format.
Techniques include:
- Machine Learning: Models trained on customer service datasets can respond based on
past data.
This application helps automate tasks in domains like customer service, providing
An Expert System mimics human expertise for problem-solving. This type of AI application
includes:
demand.
- Outlier Detection: Using methods like Z-scores to identify unusual data points.
features into principal components. These components capture maximum variance in the
data with minimal information loss, improving computational efficiency and reducing noise.
PCA is widely used for data visualization and preprocessing in machine learning.
prices, we can model price as a linear function of features like square footage, number of
bedrooms, and location. The mean squared error is minimized to determine the best-fit line.
a linear combination of features into probabilities using the sigmoid function. In this
question, Social Network Ads data could be used to classify whether a user clicked an ad.
In Spam Detection, we can use Support Vector Machine (SVM), which maximizes the
margin between classes by finding a hyperplane that separates "spam" and "not spam"
emails. Metrics such as precision, recall, and F1-score evaluate classification performance.
K-Nearest Neighbors (KNN) is a simple classification technique based on the majority label
among the nearest data points. For the Iris dataset, KNN can classify species based on
attributes. The confusion matrix provides TP, FP, TN, FN counts, used to compute accuracy,
K-Means Clustering partitions data into k clusters based on feature similarity, minimizing the
variance within clusters. The Elbow Method helps determine the optimal number of clusters
by plotting the sum of squared errors (SSE) for different k-values. The "elbow point"
indicates where additional clusters provide minimal reduction in SSE, suggesting an optimal
k-value.