The solutions for the problems in this assignment within a single MicrosoftWord document.

computer science

Description

Overview. Provide the solutions for the problems in this assignment within a single MicrosoftWord document. However, a Power Point file or scanned handwritten drawing for Problem 1(b)is fine. Remember to include your name and course number within all documents and files thatyou submit.Problem 1. [4 points] Sorting: Read the assigned chapter and the notes for Week 7 located in theLearning Activities area, and then do the following problems:(a) [2 points]. Both the Mergesort and the Quicksort algorithms will sort a list by portioningthe list. Briefly explain how Mergesort differs from Quicksort when partitioning the list.(b) [2 points] What is the big-O of the shellsort() function provided in Figure 7.6 on page297? Briefly explain how you arrived at your answer. Remember big-O measures the worstcase runtime scenario.Problem 2. [6 points] Graphs: Read the assigned chapter and notes for Week 8 located in theLearning Activities area, and then do the following problems:(a) [3 points] Draw the adjacency matrix for the following graph:Hint: Remember that links without arrows are considered bi-directional.(b) [3 points] Briefly explain the differences between dense and sparse graphs. When is if morefeasible to use a linked representation for a graph over an adjacency matrix. Also, justifyyour answer using a mathematical definitions for sparse and dense graphs


Related Questions in computer science category