1 Randomized Quick Sorting Backwards Analysis

Consider the following scheme to solve the sorting problem: given n numbers to be sorted, after the ith of n (1 ≤ i ≤ n), we will make sure that we have i of input numbers in a sorted list. Clearly these i sorted numbers will partition the ranks of the remaining n − i unsorted numbers into i + 1 int...

Full description

Bibliographic Details
Main Author: Yan Liu
Other Authors: The Pennsylvania State University CiteSeerX Archives
Format: Text
Language:English
Subjects:
Online Access:http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.129.2183
http://www.csee.wvu.edu/~ksmani/courses/fa01/random/lecnotes/lecture12.pdf
id ftciteseerx:oai:CiteSeerX.psu:10.1.1.129.2183
record_format openpolar
spelling ftciteseerx:oai:CiteSeerX.psu:10.1.1.129.2183 2023-05-15T18:32:39+02:00 1 Randomized Quick Sorting Backwards Analysis Yan Liu The Pennsylvania State University CiteSeerX Archives application/pdf http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.129.2183 http://www.csee.wvu.edu/~ksmani/courses/fa01/random/lecnotes/lecture12.pdf en eng http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.129.2183 http://www.csee.wvu.edu/~ksmani/courses/fa01/random/lecnotes/lecture12.pdf Metadata may be used without restrictions as long as the oai identifier remains attached to it. http://www.csee.wvu.edu/~ksmani/courses/fa01/random/lecnotes/lecture12.pdf text ftciteseerx 2016-01-07T14:25:42Z Consider the following scheme to solve the sorting problem: given n numbers to be sorted, after the ith of n (1 ≤ i ≤ n), we will make sure that we have i of input numbers in a sorted list. Clearly these i sorted numbers will partition the ranks of the remaining n − i unsorted numbers into i + 1 intervals. The (i + 1)th step consists of choosing one of the n − i unsorted numbers uniformly at random, and inserting it into the sorted list. After n such insertion steps, we are left with a list of all the input numbers, in sorted order. This algorithm can be viewed as a variant of quicksort algorithm [2]. To perform the insertion step, throughout the algorithm we maintain a pointer for each number yet to be inserted into the sorted list.After the ith step, the pointer for each uninserted number specifies which of the i + 1 intervals in the sorted list it would be inserted into, if it were the next to be inserted. The pointers are bidirectional, so that given an interval we can determine the numbers whose pointers point to it. Suppose we insert a number x whose pointers point to interval I, thus the work required to update the pointers is proportional to the number of pointers point to I. Consider the work done in the ith step when the objects in the input are considered in a random order. While we could directly analyze this random variable, we introduce a useful tool: backwards analysis. By using backwards analysis, we imagine that the algorithm is running backwards starting from the sorted list we have at Text The Pointers Unknown
institution Open Polar
collection Unknown
op_collection_id ftciteseerx
language English
description Consider the following scheme to solve the sorting problem: given n numbers to be sorted, after the ith of n (1 ≤ i ≤ n), we will make sure that we have i of input numbers in a sorted list. Clearly these i sorted numbers will partition the ranks of the remaining n − i unsorted numbers into i + 1 intervals. The (i + 1)th step consists of choosing one of the n − i unsorted numbers uniformly at random, and inserting it into the sorted list. After n such insertion steps, we are left with a list of all the input numbers, in sorted order. This algorithm can be viewed as a variant of quicksort algorithm [2]. To perform the insertion step, throughout the algorithm we maintain a pointer for each number yet to be inserted into the sorted list.After the ith step, the pointer for each uninserted number specifies which of the i + 1 intervals in the sorted list it would be inserted into, if it were the next to be inserted. The pointers are bidirectional, so that given an interval we can determine the numbers whose pointers point to it. Suppose we insert a number x whose pointers point to interval I, thus the work required to update the pointers is proportional to the number of pointers point to I. Consider the work done in the ith step when the objects in the input are considered in a random order. While we could directly analyze this random variable, we introduce a useful tool: backwards analysis. By using backwards analysis, we imagine that the algorithm is running backwards starting from the sorted list we have at
author2 The Pennsylvania State University CiteSeerX Archives
format Text
author Yan Liu
spellingShingle Yan Liu
1 Randomized Quick Sorting Backwards Analysis
author_facet Yan Liu
author_sort Yan Liu
title 1 Randomized Quick Sorting Backwards Analysis
title_short 1 Randomized Quick Sorting Backwards Analysis
title_full 1 Randomized Quick Sorting Backwards Analysis
title_fullStr 1 Randomized Quick Sorting Backwards Analysis
title_full_unstemmed 1 Randomized Quick Sorting Backwards Analysis
title_sort 1 randomized quick sorting backwards analysis
url http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.129.2183
http://www.csee.wvu.edu/~ksmani/courses/fa01/random/lecnotes/lecture12.pdf
genre The Pointers
genre_facet The Pointers
op_source http://www.csee.wvu.edu/~ksmani/courses/fa01/random/lecnotes/lecture12.pdf
op_relation http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.129.2183
http://www.csee.wvu.edu/~ksmani/courses/fa01/random/lecnotes/lecture12.pdf
op_rights Metadata may be used without restrictions as long as the oai identifier remains attached to it.
_version_ 1766216854560309248