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

Implement Quicksort #12

Open
Davetbutler opened this issue Aug 13, 2024 · 2 comments
Open

Implement Quicksort #12

Davetbutler opened this issue Aug 13, 2024 · 2 comments
Labels
enhancement New feature or request good first issue Good for newcomers hacktoberfest help wanted Extra attention is needed

Comments

@Davetbutler
Copy link
Member

Davetbutler commented Aug 13, 2024

Description

Implement a nada program that computes Quicksort on an inputted array of SecretIntgers

Use Case

This is a commonly used math function, and thus we should have an example for others to use rather than write the nada program from scratch.

Specific Requirements

The nada program should have one party, whose input is an array of SecretIntegers and output the sorted array

DIM = 10

def nada_main():
    party1 = Party(name="Party1")

    num = na.array([DIM], party1, "num", SecretInteger)

    # implement quick sort

    return na.output(output_array, party1, "sorted_array")

Protocol

image
@Davetbutler Davetbutler added documentation Improvements or additions to documentation enhancement New feature or request labels Aug 13, 2024
@Davetbutler Davetbutler changed the title Implement merge sort Implement Quicksort Aug 14, 2024
@oceans404 oceans404 added good first issue Good for newcomers help wanted Extra attention is needed and removed documentation Improvements or additions to documentation labels Aug 14, 2024
@EonP
Copy link

EonP commented Aug 15, 2024

Hey,
I have taken a look at this one for my first issue. I am just not sure how to write the test where the inputs and outputs are arrays.

@oceans404
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers hacktoberfest help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants