Artificial Intelligence Interview Questions

What is a heuristic function, and where is it used?

Post Views: 37,324 The heuristic function is used in Informed Search, and it finds the most promising path. It takes the current state of the agent as its input and produces the estimation of how close the agent is from the goal. The heuristic method, however, might not always give the best solution, but it guaranteed to find a good solution in a reasonable time. Heuristic function estimates how close a state is to the goal. It is represented by…

Read More

What is a Bayesian network, and why is it important in AI?

Post Views: 37,319 Bayesian networks are the graphical models that are used to show the probabilistic relationship between a set of variables. It is a directed cycle graph that contains multiple edges, and each edge represents a conditional dependency. Bayesian networks are probabilistic, because these networks are built from a probability distribution, and also use probability theory for prediction and anomaly detection. It is important in AI as it is based on Bayes theorem and can be used to answer…

Read More

What is the inference engine, and why it is used in AI?

Post Views: 37,321 In artificial intelligence, the inference engine is the part of an intelligent system that derives new information from the knowledge base by applying some logical rules. It mainly works in two modes: Backward Chaining: It begins with the goal and proceeds backward to deduce the facts that support the goal. Forward Chaining: It starts with known facts, and asserts new facts.

Read More

Give the steps for A* algorithm?

Post Views: 37,320 A* algorithm is the popular form of the Best first search. It tries to find the shortest path using the heuristic function with the cost function to reach the end node. The steps for A* algorithms are given below: Step 1: Put the first node in the OPEN list. Step 2: Check if the OPEN list is empty or not; if the list is empty, then return failure and stops. Step 3: Select the node from the…

Read More

How can AI be used in fraud detection?

Post Views: 37,320 The artificial intelligence can be broadly helpful in fraud detection using different machine learning algorithms, such as supervised and unsupervised learning algorithms. The rule-based algorithms of Machine learning helps to analyze the patterns for any transaction and block the fraudulent transactions. Below are the steps used in fraud detection using machine learning: Data extraction: The first step is data extraction. Data is gathered through a survey or with the help of web scraping tools. The data collection…

Read More

What is a market-basket analysis?

Post Views: 37,318 The market-basket analysis is a popular technique to find the associations between the items. It is frequently used by big retailers in order to get maximum profit. In this approach, we need to find combinations of items that are frequently bought together. For example, if a person buys bread, there are most of the chances that he will buy butter also. Hence, understanding such correlations can help retailers to grow their business by providing relevant offers to…

Read More

Which algorithm is used by Facebook for face recognition? Explain its working.

Post Views: 37,317 Facebook uses the DeepFace tool that uses the deep learning algorithms for the face verification that allows the photo tag suggestions to you when you upload a photo on Facebook. The deep face identifies the faces in the digital images using neural network models. The working of DeepFace is given in below steps: It first scans the uploaded images. It makes the 3-D model of the image, and then rotate that image into different angles. After that,…

Read More

Kindly explain different ways to evaluate the performance of the ML model.

Post Views: 37,310 Some popular ways to evaluate the performance of the ML model are: Confusion Matrix: It is N*N table with different sets of value that is used to determine the performance of the classification model in machine learning. F1 score: It is the harmonic mean of precision and recall, which is used as one of the best metrics to evaluate the ML model. Gain and lift charts: Gain & Lift charts are used to determine the rank ordering…

Read More