Question

5) When designing a search algorithm what are two goals? 6) What is the difference between depth first versus breadth first s
0 0
Add a comment Improve this question Transcribed image text
Answer #1

5)The 2 goals are :

A) Time taken to perform the search should be minimum , algorithm should have best possible case of time complexity.

B) The search must be efficient and accurate .Also it should be space efficient and use the necessary space only for execution.

6) BFS : Breadth first search , it is slower ,need more memory and uses FIFO implementation using queue data structure. It is used for finding the shortest path .

DFS : Depth first search , it is faster , need less memory and uses LIFO implementation using Stack data structure. It is used for examination of connected graphs and is not optimal for finding shortest path .

7) PATH Cod T Gb-d-z (4+S+62 (4+1+8+6) (G+5+2+ S) 16 (4+st8+10+S (utt1ot5) a-b-c-d-Z a-b-d-e-z MAX COST PATM a-b-dc-e-z MAX COST

Add a comment
Know the answer?
Add Answer to:
5) When designing a search algorithm what are two goals? 6) What is the difference between...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT