上一页 1 ··· 5 6 7 8 9 10 11 12 13 下一页
摘要: 因个人偏好红黑配色,为博客写了一个红黑配色的CSS代码,分享给大家。 首先html添加了Google Fonts中两个比较喜欢的字体(页眉Html代码) 1 <link href="https://fonts.googleapis.com/css?family=Anton" rel="stylesh 阅读全文
posted @ 2020-10-23 19:33 Asp1rant 阅读(187) 评论(0) 推荐(0)
摘要: 参考: https://www.geeksforgeeks.org/a-search-algorithm/ https://www.101computing.net/a-star-search-algorithm/ 一. 概述: A*算法是一种包含了启发的Djkstra算法,可以用来求带权值的图的最 阅读全文
posted @ 2020-10-19 18:32 Asp1rant 阅读(4752) 评论(0) 推荐(0)
摘要: 参考:http://www.banbeichadexiaojiubei.com/index.php/2020/02/26/%e8%87%aa%e5%8a%a8%e9%a9%be%e9%a9%b6%e8%b7%af%e5%be%84%e8%a7%84%e5%88%92-dijkstra%e7%ae%9 阅读全文
posted @ 2020-10-17 21:12 Asp1rant 阅读(1513) 评论(0) 推荐(0)
摘要: 过程抽象(Procedure Abstract) Algol语言:ALGOL是算法语言(ALGOrithmic Language)的简称,是在计算机发展史上首批清晰定义的高级语言,由欧美计算机学家合力所组成的联席大会于仍是晶体管计算机流行的1950年代所开发。国际计算机学会(ACM)将ALGOL模式 阅读全文
posted @ 2020-10-13 19:58 Asp1rant 阅读(167) 评论(0) 推荐(0)
摘要: 用C++写了一个链地址型的Hash表 参考博客:https://blog.csdn.net/Bob__yuan/article/details/100016473, https://blog.csdn.net/weixin_38169413/article/details/81612307 Hash 阅读全文
posted @ 2020-10-12 22:04 Asp1rant 阅读(446) 评论(0) 推荐(0)
摘要: Intermediate Representation (中间表达式) 一. 概述 IR是编译器从语义分析到生成机器代码的中间过程。编译器可能有一种IR,也可能有多种。 IR可以分为3类: 图IR 线性IR 混合型IR 二. 图IR 与语法相关的树 1. 语法分析树 第3章中已介绍,不赘述 2. 抽 阅读全文
posted @ 2020-10-09 19:37 Asp1rant 阅读(193) 评论(0) 推荐(0)
摘要: Context-Sensitive Analysis 1. 概述 假设语义分析已经识别出来了这么一个名词x,上下文敏感性分析需要解决以下几个问题: (1)x存放什么类型的值 (2)x有多大?(占多少长度) (3)如果x是一个函数,它返回的值是什么类型的? (4)x的值要存在多长时间? (5)谁要负责 阅读全文
posted @ 2020-10-04 21:02 Asp1rant 阅读(144) 评论(0) 推荐(0)
摘要: 二叉树是结点的一个有限集合,该集合或者为空,或者是由一个根结点加上两棵分别称为左子树和右子树的、互不相交的二叉树组成。二又树的特点是每个结点最多有两个子女,分别称为该结点的左子女和右子女。在二又树中不存在度大于2的结点,并且二又树的子树有左、右之分,其子树的次序不能颠倒。二又树是分支数最大不超过2的 阅读全文
posted @ 2020-10-01 15:44 Asp1rant 阅读(561) 评论(0) 推荐(0)
摘要: Parser (语义分析器) 1. 概述 Parser是编译器front-end的第二步,Parser将Scanner识别出的词语按照语义进行分类,并将词语构建成源编程语言的语法模型。 “ The parser derives a syntactic structure for the progra 阅读全文
posted @ 2020-09-28 19:49 Asp1rant 阅读(351) 评论(0) 推荐(0)
摘要: 参考自: https://www.runoob.com/regexp/regexp-tutorial.html https://www.runoob.com/python/python-reg-expressions.html 在线测试RE网站: https://regexr.com/ https: 阅读全文
posted @ 2020-09-23 17:12 Asp1rant 阅读(799) 评论(0) 推荐(0)
摘要: Scanner扫描器(又称 词法分析器) 参考:https://blog.csdn.net/errvv/article/details/50605332?utm_medium=distribute.pc_aggpage_search_result.none-task-blog-2~all~first 阅读全文
posted @ 2020-09-21 20:21 Asp1rant 阅读(180) 评论(0) 推荐(0)
摘要: 转载地址:https://zhuanlan.zhihu.com/p/44185847 如果没有 RSA 算法,现在的网络世界毫无安全可言,也不可能有现在的网上交易。上一篇文章 ssh 协议为什么安全 中的 ssh 协议也是基于 RSA 加密算法才能确保通讯是加密的,可靠的。 1976年以前,所有的加 阅读全文
posted @ 2020-09-21 14:48 Asp1rant 阅读(215) 评论(0) 推荐(0)
摘要: 现代编译器的结构: 上图中,IR: Intermediate Representations:原书的解释:A compiler uses some set of data structures to represent the code that it processes 源代码转换到目标程序,在编 阅读全文
posted @ 2020-09-18 20:26 Asp1rant 阅读(172) 评论(0) 推荐(0)
摘要: 参考:https://blog.csdn.net/T0mato_/article/details/53160772 相关概念解释: AES: 设AES加密函数为E,则 C = E(K, P),其中P为明文,K为密钥,C为密文。也就是说,把明文P和密钥K作为加密函数的参数输入,则加密函数E会输出密文C 阅读全文
posted @ 2020-09-18 15:42 Asp1rant 阅读(8497) 评论(3) 推荐(0)
摘要: 参考自:https://www.cnblogs.com/jimodetiantang/p/9016826.html 1.概述 Lambda是c++11中引入的特性,为创建函数提供一种新的方式,用于定义和创建匿名的函数,以简化编程工作。 关于Lambda需要知道: Lambda 函数可以引用在它之外声 阅读全文
posted @ 2020-07-02 21:24 Asp1rant 阅读(246) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 12 13 下一页