编程常用单词

以下是一些在 ACM/OI 编程中常用的单词以及它们的缩写

中文 英文 缩写
sum s
比较 compare cmp
相等 equal eq
开始 start s
结束 stop t
深度 depth dep
长度 length len
数组 array arr
数量 count cnt
总数 total tot
数组 array arr
错误,虫子 bug -
step ste
字符串 string str
整数 integer int
浮点数 floating-point float
布尔值 boolean bool
结构体 structure struct
函数 function func
参数 argument arg
循环 loop -
条件语句 conditional -
递归 recursion -
动态规划 dynamic programming DP
贪心算法 greedy algorithm -
归并排序 merge sort -
快速排序 quick sort -
二分查找 binary search -
图论 graph theory -
最短路径 shortest path -
最小生成树 minimum spanning tree MST
拓扑排序 topological sort -
深度优先搜索 depth-first search DFS
广度优先搜索 breadth-first search BFS
动态内存分配 dynamic memory allocation -
输入输出 input/output I/O
时间复杂度 time complexity -
空间复杂度 space complexity -
数据结构 data structure DS
stack -
队列 queue -
heap -
集合 set -
映射 map -
链表 linked list -
tree -
栈溢出 stack overflow -
调试 debugging -
优化 optimization -
超时 timeout -
正确性 correctness -

这些单词和缩写是在编程竞赛中常用的,可以帮助简化代码、提高效率和准确性。