Wikidata:Property proposal/algorithm complexity

From Wikidata
Jump to navigation Jump to search

algorithm complexity[edit]

This is a proposal of six related properties.

worst-case performance[edit]

Originally proposed at Wikidata:Property proposal/Natural science

Descriptiontime complexity of an algorithm at most
Data typeMathematical expression
Template parametertime at en:Template:Infobox algorithm
Domainalgorithm
Allowed valuesmath expression
Examplequicksort (Q486598) → O(n^2)
Sourcee.g. en:Sorting algorithm
Robot and gadget jobsNo

best-case performance[edit]

Originally proposed at Wikidata:Property proposal/Natural science

Descriptiontime complexity of an algorithm at least
Data typeMathematical expression
Template parametertime at en:Template:Infobox algorithm
Domainalgorithm
Allowed valuesmath expression
Examplequicksort (Q486598) → O(n log n)
Sourcee.g. en:Sorting algorithm
Robot and gadget jobsNo

average performance[edit]

Originally proposed at Wikidata:Property proposal/Natural science

Descriptiontime complexity of an algorithm on average
Data typeMathematical expression
Template parameteraverage-time at en:Template:Infobox algorithm
Domainalgorithm
Allowed valuesmath expression
Examplequicksort (Q486598) → O(n log n)
Sourcee.g. en:Sorting algorithm
Robot and gadget jobsNo

worst-case space complexity[edit]

Originally proposed at Wikidata:Property proposal/Natural science

Descriptionspace complexity of an algorithm at most
Data typeMathematical expression
Template parameterspace at en:Template:Infobox algorithm
Domainalgorithm
Allowed valuesmath expression
Examplequicksort (Q486598) → O(n)
Sourcee.g. en:Sorting algorithm
Robot and gadget jobsNo

best-case space complexity[edit]

Originally proposed at Wikidata:Property proposal/Natural science

Descriptionspace complexity of an algorithm at least
Data typeMathematical expression
Template parameterN/A
Domainalgorithm
Allowed valuesmath expression
Examplequicksort (Q486598) → O(log n)
Sourcee.g. en:Sorting algorithm
Robot and gadget jobsNo

average space complexity[edit]

Originally proposed at Wikidata:Property proposal/Natural science

Descriptionspace complexity of an algorithm on average
Data typeMathematical expression
Template parameterN/A
Domainalgorithm
Allowed valuesmath expression
Examplequicksort (Q486598) → O(log n)
Sourcee.g. en:Sorting algorithm
Robot and gadget jobsNo
Motivation

(Add your motivation for this property here.) GZWDer (talk) 18:53, 16 January 2017 (UTC)[reply]

Discussion

WikiProject Informatics has more than 50 participants and couldn't be pinged. Please post on the WikiProject's talk page instead. ChristianKl (talk) 11:16, 27 January 2017 (UTC)[reply]

  •  Comment Agreed with the previous comment. Please add the relate item to the exact complexity notion associated.
  •  Comment Datatype should be item, and the formula put in this item. It's less error prone as there is no ambiguity on the kind of "O" used in the formula and there is no risk of bad parsing later. Something like a "linear" item, or maybe "linear space". It's even possible to create items like "linear time algorithm". author  TomT0m / talk page 11:43, 27 January 2017 (UTC)[reply]
  • (Edited: was oppose) per TomT0m unless the data type is changed. Also do we really need 6 properties for this, isn't there another way to handle it (e.g with a qualifier?) ArthurPSmith (talk) 16:35, 27 January 2017 (UTC)[reply]
  •  Comment en:w:Shellsort has some examples of non-simple complexities, for example:

. If this was an individual item, what would it be labelled? And how many items would need to be created to support the definition of all algorithm complexities? At the moment, I don't see how it would be practical to create an item for each complexity. Pixeldomain (talk) 01:30, 6 February 2017 (UTC)[reply]