Home Manual Reference Source

Function

Static Public Summary
public

dual(partition: *): *

public

dualtco(partition: *): *

public

single(partition: callable): *

Template for the recursive implementation of quicksort.

public

singletco(partition: callable): *

Template for the recursive implementation of quicksort with explicit tail call optimization.

Static Public

public dual(partition: *): * source

Params:

NameTypeAttributeDescription
partition *

Return:

*

public dualtco(partition: *): * source

Params:

NameTypeAttributeDescription
partition *

Return:

*

public single(partition: callable): * source

Template for the recursive implementation of quicksort. This template allows to generate a specific version of the quicksort algorithm for a certain partitioning algorithm.

Params:

NameTypeAttributeDescription
partition callable

the implementation for the partitioning step

Return:

*

public singletco(partition: callable): * source

Template for the recursive implementation of quicksort with explicit tail call optimization. This template allows to generate a specific version of the quicksort algorithm for a certain partitioning algorithm.

Params:

NameTypeAttributeDescription
partition callable

the implementation for the partitioning step

Return:

*