latex中algorithm2e包的用法示例收藏
来源:互联网 发布:p2p软件排行 编辑:程序博客网 时间:2024/06/04 06:23
1.首先添加如下内容:
/usepackage[linesnumbered,boxed]{algorithm2e}
2.然后正文中添加如下示例:
/begin{algorithm}
/caption{identifyRowContext}
/KwIn{$r_i$ , $Backgrd(T_i)$=${T_1,T_2,/ldots,T_n}$ and similarity threshold $/theta_r$}
/KwOut{$con(r_i)$}
$con(r_i)= /Phi$/;
/For{$j=1;j /le n;j /ne i$}
{
float $maxSim=0$/;
$r^{maxSim}=null$/;
/While{not end of $T_j$}
{
compute Jaro($r_i,r_m$)($r_m /in T_j$)/;
/If{$(Jaro(r_i,r_m) /ge /theta _r) /wedge ((Jaro(r_i,r_m) /ge r^{maxSim}) $}
{
replace $r^maxSim$ with $r_m$/;
}
}
$con(r_i)=con(r_i) /cup {r^{maxSim}}$/;
}
return $con(r_i)$/;
/end{algorithm}
3.效果运行可知。
- latex中algorithm2e包的用法示例收藏
- latex中algorithm2e包的用法示例
- latex中使用elsart格式时algorithm2e包的问题
- Latex 中algorithm2e 使用例子
- latex使用algorithm2e包编译报错
- latex数学公式&对齐&algorithm2e
- [latex]在beamer中使用tikz和animate宏包绘制PDF动画的示例
- latex中公式示例
- [Latex]beamer中实现tikz的动画绘图的示例
- [latex]PGF 和 tikz中如何旋转图形的示例
- LaTeX的一些用法
- LaTeX 中算法有关宏包和命令的使用
- Latex的Algorithmic包中使用Switch和Case
- 在LaTeX中使用强大的pgfplots绘图包
- LaTeX中加入包hyperref出现的错误之解决
- latex 中equation环境中\label的用法
- [latex]使用tikz的示例
- latex的宏包安装
- I LOVE YOU TOO密码解析
- Singleton Summary
- 开通博客了……
- 开发dos虚拟机程序(续)
- Caught exception while loading file struts-default
- latex中algorithm2e包的用法示例收藏
- New Opera JavaScript engine supports native code generation
- delegate timeout
- GridView列数字、货币和日期的显示格式
- java UIManager中的各种属性
- 原创 在Unix/Linux下防止二重启动(C语言)
- MVC详解:了解真正所谓的"框架"
- 关于event.cancelBubble-JS时间冒泡
- 使用.net写的一个最简单的Cache