CS607 CURRENT MIDTERM SOLVED SUBJECTIVE by JUNAID
CS607 CURRENT MIDTERM SOLVED SUBJECTIVE by JUNAID
INTELLIGENT
(SOLVED Current Subject)
FROM MIDTERM PAPERS
LECTURE (1-22)
[email protected] For More Visit: vulmshelp.com JUNAID MALIK
[email protected] (0304-1659294)
AL-JUNAID TECH INSTITUTE
1. "A bike is heavy" is uncertain or not? Explain
Answer:
It is uncertain whether the statement "A bike is heavy" is true or not, as the weight
of a bike can vary depending on the specific model, material, and other factors.
Some bikes may be heavy, while others may be lightweight. In order to determine
whether a particular bike is heavy or not, more information about the bike in
question would be needed.
OR
In artificial intelligence, the statement "A bike is heavy" would be considered
certain because it is a statement of fact that can be objectively verified.
2. Differentiate between crossover and mutation.
Answer:
Crossover is a genetic operator used in genetic algorithms to combine the genetic
material of two parents to create offspring with traits from both. Mutation is a
random change in the genetic material of an organism, which can potentially
introduce new traits or alter existing ones. Crossover typically occurs between two
individuals, while mutation can occur within a single individual. Crossover and
mutation are both used to introduce diversity into a population and allow for the
evolution of new solutions to a problem.
OR
Crossover is a genetic operator used in genetic algorithms to combine the genetic
material of two parents to create offspring, while mutation is a genetic operator
that randomly changes the genetic material of an individual in a population.
3. Write the output without explaining
A
/ \
B C
/ /\
D E F
Answer:
A
B
D
C
E
F
4. Which search strategy you will use if there are large number of states in your
solution space and you can’t visit each state and why?
AL-JUNAID TECH INSTITUTE
Hint: you have to choose among the four strategies.
Answer:
In this scenario, it would be most efficient to use the best-first search strategy.
This is because best-first search always selects the path that appears most
promising, based on a heuristic evaluation function. This means that it will
prioritize exploring states that are likely to lead to the solution, rather than just
blindly searching every state. This can help to reduce the overall number of states
that need to be considered and make the search more efficient in cases where there
are a large number of states.
5. drawbacks of optimal search strategy and its example?
Answer:
One of the main drawbacks of optimal search strategies is that they can be very
time- and resource-intensive, especially in large or complex search spaces. This is
because they guarantee that the solution found is the optimal one, but in order to
do so, they must explore the entire search space and compare all possible
solutions.
13. "Riding a horse is same as riding a donkey" explain which reasoning is best
suited?
Answer:
The statement "riding a horse is the same as riding a donkey" is an analogy that
compares the two activities based on their shared characteristic of being types of
riding. Analogy is a form of reasoning that involves making comparisons in order
to understand or explain something. The best suited reasoning for this statement
would be inductive reasoning, which involves making a generalization based on
specific examples or observations. In this case, the generalization being made is
that riding a horse and riding a donkey are similar experiences.
14. how developing the artificial intelligence can play a significant rule in
industries/companies?
Answer:
Artificial intelligence (AI) can play a significant role in industries and companies
by automating tasks and processes, improving decision making, and enhancing the
efficiency and productivity of business operations. AI technologies, such as
AL-JUNAID TECH INSTITUTE
machine learning and natural language processing, can be used to analyze large
amounts of data, identify trends and patterns, and make predictions and
recommendations that can help companies make better informed decisions. AI can
also be used to automate routine tasks and processes, freeing up human workers to
focus on more complex and value-added activities. By harnessing the power of AI,
industries and companies can gain a competitive advantage and drive innovation
and growth.
15. Applications of GA
Answer:
Genetic algorithms (GAs) are optimization algorithms that are inspired by the
process of natural evolution. They are used to find solutions to problems that
involve searching for the best combination of a set of parameters or variables.
Some common applications of GAs include:
Machine learning: GAs can be used to optimize the parameters of machine
learning models, such as neural networks, to improve their performance.
Scheduling and routing: GAs can be used to optimize schedules and routes
for logistics and transportation problems.
Optimization of complex systems: GAs can be used to find the optimal
configuration of a complex system, such as an electrical grid or a supply
chain.
Search and rescue: GAs can be used to search for missing persons or
objects in a large, complex environment.
Data analysis and modeling: GAs can be used to analyze and model large
data sets to extract insights and make predictions.
16. Applications of AI
Answer:
Artificial intelligence (AI) has a wide range of applications across many industries
and domains.
Some common applications of AI include:
Automation: AI technologies, such as machine learning and natural
language processing, can be used to automate tasks and processes,
improving efficiency and freeing up human workers to focus on more
complex and value-added activities.
Decision making: AI can be used to analyze large amounts of data and
make predictions or recommendations to support better decision making.
Customer service: AI can be used to provide customer service through
chatbots and virtual assistants, which can handle a high volume of customer
inquiries and interactions.
AL-JUNAID TECH INSTITUTE
Healthcare: AI can be used to analyze medical data and images to support
diagnosis and treatment planning, as well as to monitor patients and
identify potential health issues.
Finance: AI can be used to analyze financial data and identify trends and
patterns, as well as to detect fraudulent activity and support risk
management.
17. Inductive deductive
Answer:
Inductive reasoning is a type of reasoning that involves moving from specific
observations or examples to a general conclusion. It is based on the idea that if a
certain pattern or relationship holds true for a number of specific cases, it is likely
to hold true in other cases as well.
Deductive reasoning, on the other hand, involves moving from a general principle
or premise to a specific conclusion. It is based on the idea that if a certain
statement is true, and certain other statements follow logically from it, then those
other statements must also be true. Deductive reasoning is often used to test the
validity of a hypothesis or to prove or disprove a theory.
18. In eight queen method following sequence 4 5 8 etc... First three queens
already placed in appropriate position you're required to put remaining six
queens’ position.
Answer:
To place the remaining six queens in the eight-queen problem using the sequence
4, 5, 8, etc., you would first place a queen on column 4 of the board. Then, you
would place a queen on column 5. Next, you would place a queen on column 8,
and so on, following the given sequence until all six queens have been placed. It is
important to ensure that no queens are placed in positions that attack each other, as
the goal of the problem is to place all eight queens on the board in a way that no
queen is able to attack any of the others.
19. Illustrate Minimax in AI system
Answer:
Minimax is a decision-making algorithm used in artificial intelligence systems,
particularly in the domain of game playing. It involves choosing the next best
move by considering all possible moves and their potential outcomes, and
selecting the move that will minimize the maximum potential loss (i.e., the worst-
case scenario). This involves assigning a value to each possible move, such as a
win or lose, and using these values to determine the best move to make. Minimax
can be used to make decisions in a wide variety of situations, including in games,
financial decision making, and other applications where the goal is to minimize
risk or loss.
20. Write down the one benefit of DFS and BFS
AL-JUNAID TECH INSTITUTE
Answer:
One benefit of BFS is that it is guaranteed to find the shortest path between
two nodes in a graph, provided that the edges of the graph have uniform
costs.
One benefit of DFS is that it can be used to traverse and search a graph or
tree data structure efficiently, as it only needs to store the current path being
explored and does not need to store the entire breadth of the search tree.
21. Adverbial and Genetic algorithm
Answer:
Adversarial algorithms are a type of algorithm used to model decision-
making scenarios in which two or more agents or players act in opposition
to each other.
Examples of adversarial algorithms include minimax, alpha-beta pruning,
and Monte Carlo tree search.
Genetic algorithms are optimization algorithms that use the principles of
natural evolution to find solutions to problems involving the combination of
variables or parameters.
22. Short from A*
Answer:
A* (A-star) is a popular algorithm used for pathfinding and graph traversal. It is an
extension of Dijkstra's algorithm and is used to find the shortest path between two
nodes in a graph.
23. Beam search.
Answer:
It is similar to breadth-first search, but instead of expanding the entire frontier of
nodes at each step, it only expands a predetermined number of the most promising
nodes, called the "beam."
Beam search is a search algorithm that expands the most promising paths and
prunes less promising ones in order to find the most likely solution to a problem. It
is used to reduce the search space and make the algorithm more efficient by
avoiding the exploration of unlikely paths.
24. Strong AI
Answer:
Strong AI, also known as artificial general intelligence, is a type of artificial
intelligence that is capable of performing any intellectual task that a human being
can. It is a hypothetical form of AI that is able to understand or learn any
intellectual task that a human being can, rather than being designed to perform a
specific task or range of tasks. Strong AI is still largely in the realm of science
fiction and is not yet a reality, but researchers and scientists are working towards
its development.
AL-JUNAID TECH INSTITUTE
OR
Strong AI is a hypothetical form of artificial intelligence that is capable of
performing any intellectual task that a human being can.
Note: Both are best details any one you can prepare
25. Week AI
Answer:
Weak AI is a type of artificial intelligence that is designed to perform a specific
task or range of tasks.
OR
Weak AI, also known as artificial narrow intelligence, is a type of artificial
intelligence that is designed to perform a specific task or range of tasks, rather
than being capable of learning or understanding any intellectual task that a human
being can. It is the most common form of AI that is used today, and it is found in a
wide range of applications, including personal assistants, language translation, and
image recognition. Weak AI is limited by its narrow scope and is not able to learn
or adapt to new tasks or situations outside of its programmed capabilities.
Note: Both are best details any one you can prepare