Question

In: Computer Science

1. What is the role of “levels” within a breadth-first search? 2. Other than flight routes,...

1. What is the role of “levels” within a breadth-first search?

2. Other than flight routes, what is an example of directed graphs in the real world?

3. Other than driving routes, what is an example of shortest paths in the real world?

4. What is the difference between shortest path and minimum spanning trees?

5. What role does “NP” play when developing efficient algorithms?

Solutions

Expert Solution

Ans.1 The levels in BFS basically signify the level of each node in the given tree from source node. In BFS the traversal is always level wise. That is from a node it's neighbours then neighbours of neighbours and so on.

Ans .2 Taking courses/subjects in colleges. Some courses have other courses as pre-requisites.

Ans.3 Shortest path is used in Routing Protocols to determine shortest path for hopping between routes for sending protocol messages.

Ans.4 Shortest path is simply the shortest path between 2 points. For example in a triangle shortest path between 2 vertices will be one edge.

However MST includes all vertices exactly once and gives edges which added up to minimum weight.

For example in a triangle of sides lengths 3,4,5 ..The sides with weights 3 and 4 will form the MST.

Ans.5

In 1965, Jack Edmonds gave the a formal definition of "efficient computation" that is problems that runs in time a fixed polynomial of the input size. These class of problems with efficient solutions are to be known as P . Here P stands for "Polynomial Time."
Now another set of problems with solutions are there. If given a potential solution, some solution can be validated efficiently. These problems collection which have a efficiently verifiable solutions is known as NP.

Now comes P = NP. This means that we can find that solution efficiently as well (for every problem that has an efficiently verifiable solution. ) Which was an early theory. However now the debate is whether PNP. This is the single most highly regarded as important question in the domain of theoretical computer science and it's interjection with mathematics. And P vs NP is a computational issue for efficiency.


Related Solutions

1. What are the role and functions of public relations within an organization? 2. Search the...
1. What are the role and functions of public relations within an organization? 2. Search the net for a good example of how a company handled a potentially bad situation regarding a product or service they provided. Next search for an example of how a company botched an event from a public relations standpoint. Please type short summaries of each example.
3.1 Bratko states that iterative deepening combines the best properties of breadth-first search and depth-first search...
3.1 Bratko states that iterative deepening combines the best properties of breadth-first search and depth-first search and is therefore, in practice, often the best choice amongst the basic search methods. Discuss this statement. 3.2 Discuss the concept of the ‘locality’ of the effects of actions in the context of planning problems.
create a code in JAVA that takes arguments to do a bfs(breadth first search) or a...
create a code in JAVA that takes arguments to do a bfs(breadth first search) or a dfs( depth first search) using a txt file as the graph input. I have made most of the main function as well as a nose function I just need the bfs and dfs functions to work here's what I have so far, the comments that start with TODO are the parts that I need to finish Main.java import java.io.*; import java.util; ArrayList; import java.util.Iterator;...
In this assignment, you will implement Breadth First Search (BFS). The input to your program is...
In this assignment, you will implement Breadth First Search (BFS). The input to your program is a graph in the adjacency list format. The input graph has at most 100 vertices. Your program must initiate a BFS from vertex 2 of the graph. If the graph is connected, your program must output “Graph is connected”. If the graph is disconnected, your program must output “Graph is not connected”. Your program should read from an input file: data2.txt and write to...
We can use breadth-first search to find the length of longest simple path in the BFS...
We can use breadth-first search to find the length of longest simple path in the BFS tree starting at s by the simple method of checking each v.d value at the end of the algorithm. BFS is Θ(|V | + |E| and this adds only Θ(|V |) work. Find an even easier approach that adds only constant time (Θ(1)) work via a simple modification to the BFS algorithm.
Role E Slide Slide 2. What are the aspects of leadership within your role? What are...
Role E Slide Slide 2. What are the aspects of leadership within your role? What are the skills and attributes needed in your role that help you to be successful?  What does success mean to you in terms of your position? What are the challenges of this practice role that you have experience? What are the advantages in this practice role that you perceive? What are some of the quality improvement processes that are you are involved with or that are...
Flight 1 -2 -1 -2 2 -2 0 -2 -3 Flight 19 19 -4 -5 -1...
Flight 1 -2 -1 -2 2 -2 0 -2 -3 Flight 19 19 -4 -5 -1 -4 73 0 1 Flight 21 18 60 142 -1 -11 -1 47 13 Listed below are departure delay times (minutes) for american Airline flights from New York to Los Angeles. Negative values correspond to flights that departed early. Use a 0.05 significance level to test the claim that the different flights have the same mean departure delay time.What is the critical value (F-value)?...
Flight 1 -2 -1 -2 2 -2 0 -2 -3 Flight 19 19 -4 -5 -1...
Flight 1 -2 -1 -2 2 -2 0 -2 -3 Flight 19 19 -4 -5 -1 -4 73 0 1 Flight 21 18 60 142 -1 -11 -1 47 13 Use a 0.05 significance level to test the claim that the different flights have the same mean departure delay time. What is the critical value (F-value)? [Round to 4 decimal places]
1. Fuels for motor vehicles other than gasoline are being evaluated because they generate lower levels...
1. Fuels for motor vehicles other than gasoline are being evaluated because they generate lower levels of pollutants than does gasoline. Compressed propane(C3H8) has been suggested as a source of power for vehicles. Supposed that in a test 30 kg of C3H8 is burned with 400 kg ofair(21mole%O2,therestN2)toproduce44kgofCO2 and12kgofCO.Inorderto calculate the percent excess air, follow the below steps. (a) What are the molecular weights of C3H8, air(21 mole % O2, the rest N2), and O2? Hence what is the moles...
Discuss the levels,role, and importance of regulating gene expression within bacteria (20 marks)
Discuss the levels,role, and importance of regulating gene expression within bacteria
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT