查看“︁Template:算法信息框/doc”︁的源代码
←
Template:算法信息框/doc
跳转到导航
跳转到搜索
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
{{NoteTA|G1=MediaWiki}}{{Documentation subpage}}<!-- 在本行下編輯模板說明 --> {{Lua|InfoboxImage}} {{uses Wikidata|P2283|P3752|P3753|P3754}} == 概要 == 在计算机算法相关条目中使用。 == 參數及使用方法 == 本模板的所有参数如下: <pre> {{算法信息框 |Name= |Image= |imagesize= |Caption= |alt= |Class= |DataStructure= |TimeComp= |time= |best-time= |SpaceComp= |Var1= |Def1= |Var2= |Def2= |Var3= |Def3= |Var4= |Def4= |Other=}} </pre> {{TemplateDataHeader}} <includeonly><templatedata> { "params": { "Name": { "label": "算法名称", "example": "深度优先搜索", "type": "string", "default": "当前页面的名称", "aliases": [ "name" ] }, "Image": { "label": "图像", "example": "File:example.png", "type": "wiki-file-name", "suggested": true }, "imagesize": { "aliases": [ "image size" ], "label": "图像尺寸", "description": "用于更改图像在模板中显示的大小" }, "alt": { "label": "替代文字", "description": "在图片无法加载时显示的文字", "example": "深度优先搜索示意图", "type": "string", "suggested": true }, "Caption": { "label": "图片说明", "description": "在图片下方的小字,用以解释图片的内容", "example": "節點進行深度优先搜索的順序", "type": "string", "aliases": [ "caption" ], "autovalue": "" }, "Class": { "label": "类别", "example": "[[搜索演算法]]", "type": "unbalanced-wikitext", "suggested": true, "aliases": [ "class" ] }, "DataStructure": { "label": "数据结构", "description": "算法所涉及到的数据结构", "example": "[[圖]]", "type": "unbalanced-wikitext", "autovalue": "", "suggested": true, "aliases": [ "data" ] }, "TimeComp": { "label": "平均时间复杂度", "description": "描述算法的时间复杂度,即执行时间的期望值随输入数据变化的趋势", "example": "<math>O(b^m)</math>", "type": "unbalanced-wikitext", "autovalue": "<math>O(n)</math>", "suggested": true, "aliases": [ "average-time" ] }, "SpaceComp": { "label": "空间复杂度", "description": "描述算法的空间复杂度,即算法所需空间随输入数据的变化情况", "example": "<math>O(n)</math>", "type": "unbalanced-wikitext", "autovalue": "<math>O(n)</math>", "suggested": true, "aliases": [ "space" ] }, "Optimal": { "label": "最优解", "type": "unbalanced-wikitext", "autovalue": "", "description": "是否为该算法所解决问题的最优解", "example": "是,当且仅当……,否" }, "Complete": { "label": "完全性", "deprecated": "意义不明,避免使用" }, "Other": { "label": "其他", "description": "需要在信息框中写明的其他内容", "type": "unbalanced-wikitext" }, "Def1": { "label": "定义1", "description": "在此处交代时间复杂度和空间复杂度中的符号的定义,对应符号1", "example": "[[分支因子|分支係數]]", "type": "unbalanced-wikitext", "required": true, "aliases": [ "def1" ] }, "Var1": { "label": "符号1", "description": "在此处交代时间复杂度和空间复杂度中使用的符号,对应定义1", "example": "<math>n</math>", "type": "unbalanced-wikitext", "default": "<math>n</math>", "aliases": [ "var1" ] }, "Var2": { "label": "符号2", "description": "在此处交代时间复杂度和空间复杂度中使用的符号,对应定义2", "type": "unbalanced-wikitext", "aliases": [ "var2" ] }, "Def2": { "label": "定义2", "description": "在此处交代时间复杂度和空间复杂度中的符号的定义,对应符号2", "example": "[[分支因子|分支係數]]", "type": "unbalanced-wikitext", "aliases": [ "def2" ] }, "Var3": { "label": "符号3", "description": "在此处交代时间复杂度和空间复杂度中使用的符号,对应定义3", "type": "unbalanced-wikitext", "aliases": [ "var3" ] }, "Def3": { "label": "定义3", "description": "在此处交代时间复杂度和空间复杂度中的符号的定义,对应符号3", "example": "[[分支因子|分支係數]]", "type": "unbalanced-wikitext", "aliases": [ "def3" ] }, "Var4": { "label": "符号4", "description": "在此处交代时间复杂度和空间复杂度中使用的符号,对应定义4", "type": "unbalanced-wikitext", "aliases": [ "var4" ] }, "Def4": { "label": "定义4", "description": "在此处交代时间复杂度和空间复杂度中的符号的定义,对应符号4", "example": "[[分支因子|分支係數]]", "type": "unbalanced-wikitext", "aliases": [ "def4" ] }, "time": { "label": "最坏时间复杂度", "description": "最坏时间复杂度", "example": "<math>O(b^m)</math>", "type": "unbalanced-wikitext" }, "best-time": { "label": "最优时间复杂度", "description": "最优时间复杂度", "example": "<math>O(b^m)</math>", "type": "unbalanced-wikitext", "autovalue": "" } }, "description": "在计算机算法相关条目中使用", "paramOrder": [ "Name", "Image", "imagesize", "alt", "Caption", "Class", "DataStructure", "TimeComp", "best-time", "time", "SpaceComp", "Optimal", "Complete", "Var1", "Def1", "Var2", "Def2", "Var3", "Def3", "Var4", "Def4", "Other" ], "format": "block" } </templatedata></includeonly> == 範例 == == 重定向 == *{{tl|Template:Infobox Algorithm}} *{{tl|Template:Infobox algorithm}} == 注意事项 == == 模板编辑说明 == 尚不明确“完全性”一项的含义。 == 參見 == <includeonly>{{Sandbox other||<!-- 本行下加入模板的分類 --> [[Category:软件模板|{{PAGENAME}}]] [[Category:電腦信息框模板|软件]] }}</includeonly>
该页面使用的模板:
Template:Documentation subpage
(
查看源代码
)
Template:Lua
(
查看源代码
)
Template:NoteTA
(
查看源代码
)
Template:TemplateDataHeader
(
查看源代码
)
Template:Tl
(
查看源代码
)
Template:Uses Wikidata
(
查看源代码
)
返回
Template:算法信息框/doc
。
导航菜单
个人工具
登录
命名空间
模板
讨论
不转换
查看
阅读
查看源代码
查看历史
更多
搜索
导航
首页
最近更改
随机页面
MediaWiki帮助
特殊页面
工具
链入页面
相关更改
页面信息