eCommons

 

Sorting and Searching Using Controlled Density Arrays

Other Titles

Abstract

Algorithms like insertion sort run slowly because of costly shifting of array elements when a value is inserted or deleted. The amount of shifting, however, can be reduced by leaving gaps - unused array locations into which new values can be inserted - at regular intervals in the array. The proper arrangement of gaps is maintained by periodic adjustment. We demonstrate this technique with a stable comparison sort algorithm with expected time O(NlogN), worst case time O(NN), and space requirements 2N. We conjecture that, by using an interpolation search, the expected time can be reduced to O(NloglogN). By comparison, Quicksort takes expected time O(NlogN), worst case time O(N2) and space N+logN. Second, we show that for any fixed d≥2 a table management algorithm can be constructed that can process a sequence of N instructions chosen from among INSERT, DELETE, SEARCH, and, MIN in worst case time O(N1+1/d). Experiments with a version of the algorithms using d=2 show a marked improvement over balanced tree schemes for N as large as several thousand.

Journal / Series

Volume & Issue

Description

Sponsorship

Date Issued

1978-12

Publisher

Cornell University

Keywords

computer science; technical report

Location

Effective Date

Expiration Date

Sector

Employer

Union

Union Local

NAICS

Number of Workers

Committee Chair

Committee Co-Chair

Committee Member

Degree Discipline

Degree Name

Degree Level

Related Version

Related DOI

Related To

Related Part

Based on Related Item

Has Other Format(s)

Part of Related Item

Related To

Related Publication(s)

Link(s) to Related Publication(s)

References

Link(s) to Reference(s)

Previously Published As

http://techreports.library.cornell.edu:8081/Dienst/UI/1.0/Display/cul.cs/TR78-362

Government Document

ISBN

ISMN

ISSN

Other Identifiers

Rights

Rights URI

Types

technical report

Accessibility Feature

Accessibility Hazard

Accessibility Summary

Link(s) to Catalog Record