Template:Infobox Algorithm: Difference between revisions

From Rice Wiki
No edit summary
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 5: Line 5:
   <data source="runtime">
   <data source="runtime">
     <label>Runtime</label>
     <label>Runtime</label>
    <default>O(n)</default>
   </data>
   </data>
   <data source="space">
   <data source="space">
     <label>Space</label>
     <label>Space</label>
    <default>O(n)</default>
   </data>
   </data>
   <data source="class">
   <data source="class">
     <label>Class</label>
     <label>Class</label>
   </data>
   </data>
</infobox>
</infobox><noinclude>{{/doc}}</noinclude>
 
<templatedata>
{
    "description": "Infobox for computer algorithms",
    "params": {
        "title": {
            "label": "Name of the algorithm appearing above the box"
        },
        "runtime": {
            "label": "Runtime complexity of the algorithm"
        },
        "space": {
            "label": "Space complexity of the algorithm"
        },
        "class": {
            "label": "Classification of the algorithm (such as Dynamic Programming or Graph Algorithms)"
        }
    }
}
</templatedata>
 
 
[[Category:Algorithms]]

Latest revision as of 00:48, 6 March 2024

Infobox for computer algorithms

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Algorithm nametitle

Name of the algorithm appearing above the infobox

Default
Page name
Unknownoptional
Runtime complexityruntime

no description

Unknownoptional
Space complexityspace

no description

Unknownoptional
Algorithm classificationclass

Classification of the algorithm (such as Dynamic Programming or Graph Algorithms)

Unknownoptional