Question

In: Computer Science

Analysis Study Case Question: Suppose that your computer only has enough memory to store 40000 entries....

Analysis Study Case Question:

  • Suppose that your computer only has enough memory to store 40000 entries. Which best graph data structure(s) – you can choose more than 1 -- should you use to store a simple undirected graph with 200 vertices, 19900 edges, and the existence of edge(u,v) is frequently asked?

–Adjacency Matrix

–Adjacency List

–Edge List

Solutions

Expert Solution

The adjacency list nad adjacency matrix can be used in the above-mentioned case. If the above graph is represented using the adjacency matrix then that would occupy the O(n^2) space where n representing the number of vertices. But if we use this to represent in the form of adjacency list then that would use less space compared to the adjacency matrix and then the unused places in the adjacency matrix where there is no edge present b/w two vertices won't be mentioned in the adjacency list.The edge list concept can not be used here since the number of efges is very high so it will require O(E) time to make the graph where E reprents the number of edges and further more time will be required to search to find the time in the graph to check for the existence of edge.

but in the above question it is also mentioned to know the the existence of edge(u,v) so finding if an edge between two vertices is present in adjacency list will consume a lot of time. If the list are appended in the sorted form using some method like set or map then in that case an extra O(log n) time would be consumed where n represents the length of the number of edges connected to a respective node. So we can use the adjacency list form but here we will have to keep in mind to store the data in sorted form for every node of the graph so that less time is used to search to find the existence of the edge.

Since here the number of vertices is very less so it is advisable to store it in the form of adjacency matrix so that the existence of edge(u,v) can be computed in the O(1) time and also it is also more simple and easy to understand in the above mentioned case.

So for the above case adjacency matrix is simpler and easily understandable approach apart form this adjacency list might also be used but you need to be extra careful to consume less time while checking the existence of edge(u,v). But edge list concept should not be used for the above case.


Related Solutions

2) Basic Probability Suppose a simple computer contains 16 memory sectors, 4 of which are read-only....
2) Basic Probability Suppose a simple computer contains 16 memory sectors, 4 of which are read-only. We need to use 3 of the sectors. A.) How many different samples are possible? B.) Find the probability that none in the sample are read-only. C.) Find the probability that exactly 2 registers in the sample are read-only. D.) Find the probability that at least 1 sector is read-only
Case Study 1: Securing your home computer You just purchased a brand new computer for your...
Case Study 1: Securing your home computer You just purchased a brand new computer for your home environment. It comes with the latest operating system, Internet connectivity and all accessories to complete your home office and school activities. You also have an Internet Service Provider where you can easily use the existing network to connect to the Internet and to perform some online banking. Describe the steps you plan to go through to ensure this new computer system remains as...
Case Study 2: Bill (please answer question 2 and 5 only) Bill is 52 and has...
Case Study 2: Bill (please answer question 2 and 5 only) Bill is 52 and has been previously diagnosed with Type 2 Diabetes Mellitus. He admits that he often does not take his medications which are metformin and glyburide. 1. What types of medications are metformin and glyburide? Briefly describe their general mechanisms as well as their potential side effects/drug-nutrient interactions Bill has come into hospital because he has been diagnosed with HHS. Hyperosmolar hyperglycemic state/ syndrome (HHS) is when...
Complete a case analysis of Ford (Case 17) (case study section of your text). A formal,...
Complete a case analysis of Ford (Case 17) (case study section of your text). A formal, in-depth case analysis requires you to utilize the entire strategic-management process. Assume your group is a consulting team asked by Ford to analyze its external/internal environment and make strategic recommendations. You will be required to make exhibits/matrices to support your analysis and recommendations. The case analysis must encompass 1-2 pages plus the reference page. The cover page must include the company name, your group...
Complete a case analysis of Ford (Case 17) (case study section of your text). A formal,...
Complete a case analysis of Ford (Case 17) (case study section of your text). A formal, in-depth case analysis requires you to utilize the entire strategic-management process. Assume your group is a consulting team asked by Ford to analyze its external/internal environment and make strategic recommendations. You will be required to make exhibits/matrices to support your analysis and recommendations. The case analysis must encompass 1-2 pages plus the reference page. The cover page must include the company name, your group...
Based on your reading and analysis of the case study, post your response to the following:...
Based on your reading and analysis of the case study, post your response to the following: What challenges does Brown, the CIO, face in creating a process-oriented organization? What are the requirements for creating a process-oriented culture in an organization? To what extend does Pinnacle West address these requirements? Where is it lacking? Is it necessary to push the process-oriented culture to the entire company, or is having a process-oriented information technology organization sufficient for driving value from business information...
Case Study- Henderson’s Your interview for the position of store manager at Henderson’s is coming to...
Case Study- Henderson’s Your interview for the position of store manager at Henderson’s is coming to an end. Henderson’s is a men’s clothing store with a 50-year history of offering affordable clothing and great customer service. Alan Henderson, who owns the store and conducted the interview, smiles as he offers the following suggestion: “I like you. You seem like you have integrity. I also like your background in retail sales and your understanding of customer service. See these ads all...
Suppose a computer using direct mapped cache has 232 bytes of main memory and a cache...
Suppose a computer using direct mapped cache has 232 bytes of main memory and a cache of 1024 blocks, where each block contains 32 bytes. [2] How many blocks of main memory does this computer have? [4] Show the format of a memory address as seen by cache; be sure to include the field names as well as their sizes. [3] Given the memory address 0x00001328, to which cache block will this address map? (Give you answer in decimal.) A...
(This is the full question. Consultant, Computer Programmer, and Administrator only has to be answered for....
(This is the full question. Consultant, Computer Programmer, and Administrator only has to be answered for. Thank you!)--Calculate Payroll Breakin Away Company has three employees-a consultant, a computer programmer, and an administrator. The following payroll information is available for each employee: Consultant Computer Programmer Administrator Regular earnings rate $2,410 per week $34 per hour $44 per hour Overtime earnings rate Not applicable 1.5 times hourly rate 2 times hourly rate Number of withholding allowances 3 2 1 For the current...
*Answer the 3rd question ONLY* Read the case study Italy Defied Starbucks—Until It Didn’t, i only...
*Answer the 3rd question ONLY* Read the case study Italy Defied Starbucks—Until It Didn’t, i only left the other questions becasue they are related: “We arrive with humility and respect in the country of coffee,” Howard Schultz, the former longtime CEO of Starbucks, told Corriere della Sera, Italy’s leading daily, last week. He was about to inaugurate, in Milan, the first Italian outpost of the global chain that supersized coffee and now vies with McDonald’s and Coca Cola as a...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT