The zsort Reference Manual

This is the zsort Reference Manual, version 0.1, generated automatically by Declt version 4.0 beta 2 "William Riker" on Sun Dec 15 08:08:59 2024 GMT+0.

Table of Contents


1 Introduction


2 Systems

The main system appears first, followed by any subsystem dependency.


2.1 zsort

zsort is a collection of portable sorting algorithms.

Author

Jorge Tavares <>

License

MIT

Version

0.1

Dependency

alexandria (system).

Source

zsort.asd.

Child Components

3 Files

Files are sorted by type and then listed depth-first from the systems components trees.


3.1 Lisp


3.1.1 zsort/zsort.asd

Source

zsort.asd.

Parent Component

zsort (system).

ASDF Systems

zsort.


3.1.2 zsort/packages.lisp

Source

zsort.asd.

Parent Component

zsort (system).

Packages

zsort.


3.1.3 zsort/base.lisp

Dependency

packages.lisp (file).

Source

zsort.asd.

Parent Component

zsort (system).

Internals

sort-dispatch (macro).


3.1.4 zsort/insertion-sort.lisp

Dependency

base.lisp (file).

Source

zsort.asd.

Parent Component

zsort (system).

Public Interface

insertion-sort (function).

Internals

insertion-sort-body (macro).


3.1.5 zsort/quicksort.lisp

Dependency

insertion-sort.lisp (file).

Source

zsort.asd.

Parent Component

zsort (system).

Public Interface
Internals

3.1.6 zsort/merge-sort.lisp

Dependency

quicksort.lisp (file).

Source

zsort.asd.

Parent Component

zsort (system).

Public Interface

merge-sort (function).

Internals

3.1.7 zsort/heapsort.lisp

Dependency

merge-sort.lisp (file).

Source

zsort.asd.

Parent Component

zsort (system).

Public Interface

heapsort (function).

Internals

3.1.8 zsort/counting-sort.lisp

Dependency

heapsort.lisp (file).

Source

zsort.asd.

Parent Component

zsort (system).

Public Interface

counting-sort (function).

Internals

counting-sort-body (macro).


3.2 Static


3.2.1 zsort/README

Dependency

counting-sort.lisp (file).

Source

zsort.asd.

Parent Component

zsort (system).


3.2.2 zsort/LICENSE

Dependency

readme (file).

Source

zsort.asd.

Parent Component

zsort (system).


4 Packages

Packages are listed by definition order.


4.1 zsort

zsort is a collection of portable sorting algorithms.

Source

packages.lisp.

Use List

common-lisp.

Public Interface
Internals

5 Definitions

Definitions are sorted by export status, category, package, and then by lexicographic order.


5.1 Public Interface


5.1.1 Ordinary functions

Function: counting-sort (sequence &key ascend min max)
Package

zsort.

Source

counting-sort.lisp.

Function: heapsort (sequence predicate &key key)
Package

zsort.

Source

heapsort.lisp.

Function: insertion-sort (sequence predicate &key key)
Package

zsort.

Source

insertion-sort.lisp.

Function: merge-sort (sequence predicate &key key)
Package

zsort.

Source

merge-sort.lisp.

Function: quicksort (sequence predicate &key key)
Package

zsort.

Source

quicksort.lisp.

Function: randomized-quicksort (sequence predicate &key key)
Package

zsort.

Source

quicksort.lisp.


5.2 Internals


5.2.1 Macros

Macro: build-heap (seq type len-1 pred &optional key)
Package

zsort.

Source

heapsort.lisp.

Macro: counting-sort-body (type ref ascend sequence end min max)
Package

zsort.

Source

counting-sort.lisp.

Macro: heapify (seq vector-ref root max pred &optional key)
Package

zsort.

Source

heapsort.lisp.

Macro: heapsort-body (type ref predicate sequence key end)
Package

zsort.

Source

heapsort.lisp.

Macro: insertion-sort-body (type ref predicate sequence key start end)
Package

zsort.

Source

insertion-sort.lisp.

Macro: merge-sequences-body (type ref a start-a end-a b start-b end-b aux start-aux predicate &optional key)
Package

zsort.

Source

merge-sort.lisp.

Macro: merge-sort-body (type ref mpredicate msequence mkey mstart mend)
Package

zsort.

Source

merge-sort.lisp.

Macro: quicksort-body (type ref mpredicate msequence mkey mstart mend pick-pivot)
Package

zsort.

Source

quicksort.lisp.

Macro: sort-dispatch (sort-body predicate sequence &rest args)
Package

zsort.

Source

base.lisp.


5.2.2 Ordinary functions

Function: bounded-random (min max)
Package

zsort.

Source

quicksort.lisp.

Function: median-of-3-pivot (start end)
Package

zsort.

Source

quicksort.lisp.

Function: median-pivot (start end)
Package

zsort.

Source

quicksort.lisp.


Appendix A Indexes


A.1 Concepts


A.2 Functions

Jump to:   B   C   F   H   I   M   Q   R   S  
Index Entry  Section

B
bounded-random: Private ordinary functions
build-heap: Private macros

C
counting-sort: Public ordinary functions
counting-sort-body: Private macros

F
Function, bounded-random: Private ordinary functions
Function, counting-sort: Public ordinary functions
Function, heapsort: Public ordinary functions
Function, insertion-sort: Public ordinary functions
Function, median-of-3-pivot: Private ordinary functions
Function, median-pivot: Private ordinary functions
Function, merge-sort: Public ordinary functions
Function, quicksort: Public ordinary functions
Function, randomized-quicksort: Public ordinary functions

H
heapify: Private macros
heapsort: Public ordinary functions
heapsort-body: Private macros

I
insertion-sort: Public ordinary functions
insertion-sort-body: Private macros

M
Macro, build-heap: Private macros
Macro, counting-sort-body: Private macros
Macro, heapify: Private macros
Macro, heapsort-body: Private macros
Macro, insertion-sort-body: Private macros
Macro, merge-sequences-body: Private macros
Macro, merge-sort-body: Private macros
Macro, quicksort-body: Private macros
Macro, sort-dispatch: Private macros
median-of-3-pivot: Private ordinary functions
median-pivot: Private ordinary functions
merge-sequences-body: Private macros
merge-sort: Public ordinary functions
merge-sort-body: Private macros

Q
quicksort: Public ordinary functions
quicksort-body: Private macros

R
randomized-quicksort: Public ordinary functions

S
sort-dispatch: Private macros


A.3 Variables