02 Aug please see discussion below and respond with 150 words or more. ? Hello class! Today ill choose the main two s
please see discussion below and respond with 150 words or more.
Hello class!
Today ill choose the main two sorting algorithms in the background materials to answer the first question.
Lets discuss how Selection and Quicksort work!
Selection Sort:
In its simplest form, a selection sort algorithm sorts the data by searching through a list for the smallest element then placing this in the first index position. Once this is complete, it then repeats itself moving up in elements until the whole list has been sorted. As others have noted, the time complexity for this algorithm is O(n2). Having a time complexity of O(n2) makes it a potentially very slow algorithm, especially if the data set is large (James, 2015).
Quicksort time!
Quicksort will sort an array by dividing it into two parts, it uses a pivot element to compare and divide the array into higher/lower indexes of the pivot value. Quicksort is implemented in a recursive manner until the whole array is sorted. Typically in ascending order. The worst case performance scenario O(n2), the same as selection sort, but on average will perform at O(n log n) (James,2015).
Graphs!
Graphs are nonlinear data structures that consist of a set number of nodes(vertices) and a set of edges that connect the nodes.
In graphs, a pair (x,y) is called an edge. an edge tells us that the x node connects to the y node.
When viewing a graph, the dots are the vertecies/nodes and the lines are the edges.
When it comes to questions that graphs can solve.
Anything with connected nodes is by definition a part of the graph theory domain. Any tree or network and more. Social networks, semantic networks, dependency trees, etc.
These can be used to map out chains of events, and connections. This can be used to also find the shortest possible route between nodes as well as determine root causes of issues within routes/chains/relationships.
– Damion
Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Ask A Question and we will direct you to our Order Page at WriteEdu. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.
Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.
Do you need help with this question?
Get assignment help from WriteEdu.com Paper Writing Website and forget about your problems.
WriteEdu provides custom & cheap essay writing 100% original, plagiarism free essays, assignments & dissertations.
With an exceptional team of professional academic experts in a wide range of subjects, we can guarantee you an unrivaled quality of custom-written papers.
Chat with us today! We are always waiting to answer all your questions.