Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge v0.3 into master #3

Merged
merged 18 commits into from
Aug 23, 2021
Merged

merge v0.3 into master #3

merged 18 commits into from
Aug 23, 2021

Conversation

bxparks
Copy link
Owner

@bxparks bxparks commented Aug 23, 2021

  • v0.3 (2021-08-23)
    • Add 3-argument versions of each sorting function which accepts a lambda
      expression or function pointer that evalutes the general "less-than"
      comparison between 2 elements in the array.
      • Can be used to implement any sorting criteria, e.g. reverse sort, or
        sorting using compound keys.
      • Reimplement 2-argument versions of each sorting function to simply
        call the 3-argument versions using a default "less-than" function
        to give simple ascending order.
      • The quickSortXxx() algorithms do not optimize well, probably due
        to the recursive function call, so the 2-argument version is
        duplicated from the 3-argument version.
      • Add examples/CompoundSortingDemo to illustrate the 3-argument
        sorting functions to sort by (name, score) pair.
      • No changes observed to flash memory consumption or CPU execution
        times.

…arison predicate (function or lambda expression)
… 3-argument versions with a default lessThan lambda expression
…-argument versions with a default lessThan lambda expression
@bxparks bxparks merged commit 55c9204 into master Aug 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant