Skip to content
Discussion options

You must be logged in to vote

Hi @DieterPi,

Measuring efficiency based on time is pretty hard to implement since all our processes run on shared resources, so evaluating efficiency based on runtime for example won't be accurate. This is not something we're looking at implementing.

As you say in your original message, there is some merit in the idea of counting comparisons, but it won't be very easy 😅

As a start, you could ask students to implement a compare function that increases some amount_of_comparisons value, and another get_amount_of_comparisons that returns that amount. You could then write a custom oracle function that calls get_amount_of_comparisons and checks if that's "within expected bounds".

Additionally,…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by chvp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants