Template:Infobox algorithm

{{Documentation|content=

Usage
{	"description": "Infobox describing an algorithm", "params": { "name": { "label": "Name", "description": "Name of algorithm", "type": "content", "required": true, "default": "", "autovalue": "", "suggested": true },		"class": { "label": "Problem class", "description": "Type of problem it solves", "type": "content", "required": true, "example": "Sorting", "autovalue": "", "suggested": true },		"image": { "type": "content", "label": "Image" },		"caption": { "type": "content", "label": "Caption" },		"data": { "label": "Data structure", "description": "Data structure operated upon", "type": "content", "example": "Array", "required": true, "suggested": true },		"time": { "label": "Worst-case time complexity", "description": "Worst-case time complexity in big O notation", "type": "content", "required": true, "suggested": true, "example": "O(n)" },		"best-time": { "label": "Best-case time complexity", "type": "content" },		"average-time": { "label": "Average time complexity", "type": "content" },		"space": { "label": "Worst-case space complexity", "required": true, "description": "If not specified, this should be auxiliary space complexity and not include the space needed for the input", "type": "content", "suggested": true, "example": "O(1)" },		"alt": { "label": "Alt text", "description": "Alt text for image", "type": "string" },		"size": { "aliases": [ "image size", "imagesize", "image_size" ],			"label": "Image size" }	},	"paramOrder": [ "name", "class", "image", "size", "alt", "caption", "data", "time", "best-time", "average-time", "space" ] } }}