登录
首页 » 数据结构 » 平衡支架

平衡支架

于 2023-07-15 发布 文件大小:1.47 kB
0 154
下载积分: 2 下载次数: 1

代码说明:

读取的字符一一 ; 忽略任何不是支架的一些种类; 所有左括号内推入堆栈 ; 为每一个右括号,请确保位于堆栈中的类型相匹配的左的括号和弹出 ; 可能会出现三种错误: 到达最后一步输入的现在还有 (左) 括号在堆栈上 ; 你找到一个右括号中输入,但在堆栈的顶部左的一个不匹配 (即,它不是同一种) ; 您尝试匹配一个右括号与左一个从堆栈,但在堆栈为空 ;

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 最小生成树
    1 2 0.0403 1 3 0.4747 1 4 0.7015 1 5 0.7936 1 6 0.2973 1 7 0.6139 1 8 0.4494 1 9 0.3155 1 10 0.8558 1 11 0.272 1 12 0.1045 1 13 0.6548 1 14 0.9271 1 15 0.3229 2 1 0.2182 2 3 0.9329 2 4 0.9521 2 5 0.8128 2 6 0.4044 2 7 0.6619 2 8 0.6596 2 9 0.3007 2 10 0.7244 2 11 0.2316 2 12 0.01 2 13 0.915 2 14 0.0878 2 15 0.0984 3 1 0.967 3 2 0.8945 3 4 0.749 3 5 0.9038 3 6 0.3022 3 7 0.2 3 8 0.7532 3 9 0.042 3 10 0.1991 3 11 0.8995 3 12 0.0592 3 13 0.4332 3 14 0.3324 3 15 0.17 4 1 0.434 4 2 0.3857 4 3 0.5991 4 5 0.5404 4 6 0.7573 4 7 0.96 4 8 0.8047 4 9 0.5279 4 10 0.1573 4 11 0.9087 4 12 0.3227 4 13 0.2898 4 14 0.5262
    2022-12-31 18:30:14下载
    积分:1
  • VC下实现响铃的小程序,自动生成一个小文件,可以用realplayer等播放器打开...
    VC下实现响铃的小程序,自动生成一个小文件,可以用realplayer等播放器打开-VC under Neither the small program automatically generates a small file that can be used REALPLAYER other players open
    2022-06-15 11:58:02下载
    积分:1
  • sqlite 小型库底层代码的实现 学习库底层原理很好的教材 实例...
    sqlite 小型数据库底层代码的实现 学习数据库底层原理很好的教材 实例-small sqlite database realize the underlying code to learn the underlying principles of good database of examples of teaching materials
    2022-08-31 10:35:04下载
    积分:1
  • 一元多项式的计算,建立两个多项式,并进行相加,相减运算,输出果.参考资料:严蔚敏《与算法》...
    一元多项式的计算,建立两个多项式,并进行相加,相减运算,输出结果.参考资料:严蔚敏《数据结构与算法》-one yuan polynomial calculations, the establishment of two polynomials, and together, subtract operation, the output results. References : Yan Wei Min "data structure and algorithm"
    2022-11-01 12:10:03下载
    积分:1
  • 严蔚敏编写的《》第10章的答案,全部为源码
    严蔚敏编写的《数据结构》第10章的答案,全部为源码-the answers of chapter 10 of a book called ‘Data Structures’ writen by Yan Wei Min
    2022-05-16 17:51:29下载
    积分:1
  • C语言写的Hash算法,在各种平台上都编译通过,可以直接使用。...
    C语言写的Hash算法,在各种平台上都编译通过,可以直接使用。-C language to write the Hash algorithms on various platforms are compiled, can be used directly.
    2023-07-13 16:55:02下载
    积分:1
  • 智能仓库管理系统
    智能仓库管理系统-intelligent warehouse management system
    2022-05-25 18:21:21下载
    积分:1
  • The most popular embedded database. Faste st and stablest.
    The most popular embedded database. Fastest and stablest.-The most popular embedded database. Faste st and stablest.
    2022-07-04 10:09:28下载
    积分:1
  • 数据结构--树的常见操作及维护算法的实现-data structure-- a common tree operation and maintenance of the algorithm to achieve
    2022-06-16 13:51:04下载
    积分:1
  • 假设一个文件中出现了8种符号S0,SQ,S2,S3,S4,S5,S6,S7,那么每种符号要编码,至少需要3bit。假设编码成000,001, 010,011,1...
    假设一个文件中出现了8种符号S0,SQ,S2,S3,S4,S5,S6,S7,那么每种符号要编码,至少需要3bit。假设编码成000,001, 010,011,100,101,110,111。那么符号序列S0S1S7S0S1S6S2S2S3S4S5S0S0S1编码后变成 000001111000001110010010011100101000000001,共用了42bit。我们发现S0,S1,S2这3个符号出现的频率比较大,其它符号出现的频率比较小,我们采用这样的编码方案:S0到S7的码辽分别01,11,101,0000,0001,0010,0011, 100,那么上述符号序列变成011110001110011101101000000010010010111,共用了39bit。尽管有些码字如 S3,S4,S5,S6变长了(由3位变成4位),但使用频繁的几个码字如S0,S1变短了,所以实现了压缩。对于上述的编码可能导致解码出现非单值性:比如说,如果S0的码字为01,S2的码字为011,那么当序列中出现011时,你不知道是S0的码字后面跟了个1,还是完整的一个S2的码字。因此,编码必须保证较短的编码决不能是较长编码的前缀。符合这种要求的编码称之为前缀编码。要构造符合这样的二进制编码体系,可以通过二叉树来实现。-Suppose a file appears in eight kinds of symbols S0, SQ, S2, S3, S4, S5, S6, S7, then each symbol to be encoded, at least 3bit. Suppose encoding 000,001, 010,011,100,101,110,111. Then the symbolic sequence S0S1S7S0S1S6S2S2S3S4S5S0S0S1 encoded into 000001111000001110010010011100101000000001, sharing a 42bit. We found that S0, S1, S2 these three symbols the frequency of relatively large, the other symbols the frequency is relatively smal
    2022-04-27 21:17:34下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载