用\Statex使其不占用行号即可。\begin{algorithm}\caption{2333}\label{233}\begin{a
原创 2022-10-14 15:05:56
583阅读
【代码】latex,不带行号的algorithm
原创 2023-10-22 21:37:33
509阅读
TeX介绍 TeX 是 Knuth 开发的计算机排版系统,原因在于 Knuth 在编写《计算机程序设计艺术》( TAOCP )时,由于编辑部的排版令他不满意,因此他用了 10 年的时间编写了 TeX 。 TeX是用π 的近似值作为版本号,并且 Knuth 说,等到他死去后, TeX 的版本号固定为pi ,并且其他
转载 6月前
22阅读
摘自https://arxiv.org/abs/2105.10446。
原创 2023-12-11 09:52:00
371阅读
的行数,或者调整其他图的大小/行数,或者给。其实Latex已经帮着让空白尽量少了,还不如碰碰调整 整个。
原创 2023-12-29 09:34:28
1315阅读
Latex 使用algorithm报错 undefined control sequence。
原创 2023-07-22 11:01:01
2679阅读
2点赞
1评论
引入\usepackage{float},添加[H]来产生没有浮动效果的环境。
原创 2022-09-03 00:18:03
2329阅读
Algorithm】Sorting Algorithm 目录 对比排序 冒泡排序Bubble Sort 归并排序Merge Sort 快速排序Quick Sort 线性排序 计数排序Count Sort 桶排序Bucket Sort 对比排序 Bubble Sort /* * 冒泡排序:重复得走过 ...
转载 2021-10-10 19:39:00
121阅读
2评论
For example we have the array like this: First step is using Counting sort for last digit, in our example is: Then sort according to the last digit: T
转载 2019-03-14 15:45:00
101阅读
2评论
冒泡排序def bubble_sort(li): for i in range(len(li)-1): # i表示第几趟 for j in range(len(li)-i-1): # j表示图中的箭头 if li[j] > li[j+1]: li[j], li[j+1] = li[j+1], li[j] ===
转载 2023-08-08 13:05:47
82阅读
经过慎重考虑,也经过反复思考。查阅网上相关资料 1 一位高手对我的建议: 2 一般要做到50行以内的程序不用调试、100行以内的二分钟内调试成功.acm主要是考算法的 3 ,主要时间是花在思考算法上,不是花在写程序与debug上。 4 下面给个计划你练练: 5 6 第一阶段: 7 ...
转载 2015-05-23 09:56:00
80阅读
2评论
#include <iostream>#include<algorithm>using namespace std;bool cmp(int a,int b){ return a>b;}int main(){ int a[4]={2,9,3,1}; do{ for(int i=0;i<4;i++) cout<<a[i];...
原创 2021-06-11 10:04:32
176阅读
#include <iostream> #include<algorithm> using namespace std; bool cmp(int a,int b) { return a>b; } int main() { int a[4]={2,9,3,1}; do{ for(int i=0;i<4;i++) cout<<a[i]; ...
原创 2022-03-02 11:20:07
49阅读
Introduce What is Algorithm? 算法是求解问题的*步骤*** 算法的特性 有穷性:一个算法必须在有穷步后结束,每一步必须在有穷时间内完成 算法有穷而程序无穷 确定性:每条指令不能有歧义,即无论运行多少次,相同的输入总能得到相同的输出 可行性:算法中描述的操作都可以通过已经实 ...
转载 2021-03-29 22:18:00
443阅读
2评论
S.No. Name Indexing Search Insertion Optimized Search 1 Linear Array O(1) O(n) N/A O(log n) 2 Dynamic Array O(1) O(n) O(n) O(log n) 3 Linked List O(n) O(n) O(1) O(n) 4 Hash Table O(1) O(1) O(1) ------
原创 2021-09-08 10:13:21
200阅读
组合数: $\binom{n}{m}$ \(\binom{n}{m}\) 第一类斯特林数: $n \brack m$ \(n \brack m\) 第二类斯特林数: $n \brace m$ \(n \brace m\) 当然 $\{_m^n\}$ \(\{_m^n\}\) 也可以,但是可能会丑一些 ...
转载 2021-10-29 18:01:00
1133阅读
2评论
https://zhuanlan.zhihu.com/p/110756681
原创 2021-07-18 13:40:56
275阅读
学习到论文里一些细节的latex写法。
原创 2022-06-21 10:46:03
430阅读
 
原创 2021-11-04 10:30:09
1446阅读
前言什么是Latex?Latex是一种基于ΤΕΧ的排版系统,可以快速的帮你排版文章、公式、书籍等等为什么需要Latex?你的投稿对象要求你使用Latex排版(一些学术刊物和出版社,大部分都要求Latex),而不是 Office Word。Office Word 的复制、粘贴时格式与排版的混乱与不可控。想参加某个科学竞赛,比如 MCM/ICM(美赛)、CUMCM(国赛),使用Latex编写论文更加方
原创 2023-02-11 20:08:27
175阅读
  • 1
  • 2
  • 3
  • 4
  • 5