Question
please directly show me the answers
8) (20 pts) Running times. Each question has 2pts. A. Can be solved in linear time in the worst case. B. Can be solved in pol
0 1
Add a comment Improve this question Transcribed image text
Answer #1

To find the shortest path from source to destination where weight of all edges is 1. A - Can be solved in linear time in worst case.

To find topological sorting of nodes. A - Can be solved in linear time in worst case.

To find if graph is disconnected or not. A - Can be solved in linear time in worst case.

Find if an input string matches a regular expression. C - Can be solved in exponential time in worst case.

Find if a set X of integers can be partitioned into a subset S where sum of integers in S equals target t. B - Can be solved in polynomial time in worst case.

Find if there are three integers in a set X such that their sum is 1. B - Can be solved in polynomial time in worst case.

Add a comment
Know the answer?
Add Answer to:
please directly show me the answers 8) (20 pts) Running times. Each question has 2pts. A. Can be solved in linear time in the worst case. B. Can be solved in polynomial time in the worst case. C....
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