Template:Infobox Algorithm: Difference between revisions

From Rice Wiki
No edit summary
No edit summary
 
(3 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": "Algorithm name",
            "description": "Name of the algorithm appearing above the infobox",
            "default": "Page name"
        },
        "runtime": {
            "label": "Runtime complexity"
        },
        "space": {
            "label": "Space complexity"
        },
        "class": {
            "label": "Algorithm classification",
            "description": "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