CLRS (Introduction to Algorithms 2nd) reading notes 5

来源:互联网 发布:淘宝企业店铺运营方案 编辑:程序博客网 时间:2024/04/30 12:09

Summer vacation is always pleasant not only because it offers you much entertainment time, but also you can read whatever book you like to learn – CLRS, for example.

This note is the for the first 6 chapter in Part 7 (Chapter 27 to 32). Yes they are more intriguing and of course more abstruse.

Chapter 27 – Sorting network. To me it is more like a VHDL implementation of sorting. It is a new perspective against the traditional serial sorting algorithms.

Chapter 28 – Matrix computation. It is more about numerical linear algebra instead of computer science. Strassen algorithm enhances basic matrix multiplication performance by reducing each iterative step by about 1/8 – using combinations of matrix addition & subtraction to replace one of the 8 matrix multiplication – it was quite shocking because people never thought that it was possible to improve the basic numerical calculation procedures. About linear system solving: LUP-Factorization is the basic numerical method. Essentially it is Gaussian Elimination method – a simple iterative matrix solving method.

Chapter 29 – Linear programming. Essentially it is another form of linear system solving problem – through several transformation, and Gaussian elimination is still useful here. One noticeable issue is that we need a feasible starting guess as the prerequisite of the next iterations. This can be solved by a simple linear transformation.

Chapter 30 – Polynomial and Fourier Transformation. Fourier transformation is the process from continuous signal to a sequence of discretized signals (DFT, there’s CFT that is continuous Fourier transformation) and also backward(DFT^-1). FFT is an effective implementation of Fourier transformation, which takes advantage of complex root properties and divide & conquer strategy. FFT divides each iteration into two parts and in each iteration, due to the symmetry of the unit complex roots (recall the unit complex roots chart in a complex plane), an operation called “butterfly operation” is applied. BTW, FFT is very useful in ocean simulation.

Chapter 31 – Number theory. I think this chapter can be put in a MATHs textbook about number theory. Most of the referenced papers are from MATHs journals / conferences. I think the main reason that this chapter exists is that Cryptology is based on it – like RSA that takes advantage of the extremely difficulty of large prime numbers factorization.

Chapter 32 – String matching. It is not as hard as the chapter mentioned above. Rabin-Karp simplifies the pattern and the sub-strings into number comparisons; finite automation method, as clear as its term; KMP algorithm, makes a significant improvement against the naive match algorithm by investigating more useful hints within each matching attempt (what’s the next reasonable starting offset?). A preprocessing is required – the useful information can be retrieved by a comparison between the pattern and itself.

Obviously things are getting ‘mathematical’ and everything is more abstract and abstruse – the common style of the theoretical textbooks. It is hard to get clear for each MATHS detail in the text. This is also the main source that most complaints originate – Amazon.com, school mates, etc.. I think it requires at least several weeks for each math-based topic (number theory, numerical algebra, etc.) for a more in-depth understanding.

P.S. it is said a book called ‘Algorithms’ from UC-Berkeley is elaborated in a more pleasant way.. hmmm..

原创粉丝点击
热门问题 老师的惩罚 人脸识别 我在镇武司摸鱼那些年 重生之率土为王 我在大康的咸鱼生活 盘龙之生命进化 天生仙种 凡人之先天五行 春回大明朝 姑娘不必设防,我是瞎子 1月婴儿大便干燥怎么办 椰子鞋350线开了怎么办 打完篮球小腿肌肉酸痛怎么办 衣服穿少了感冒怎么办 侧手翻翻不过去怎么办 生完孩子胯宽了怎么办 小孩户口性质弄错了怎么办 4岁宝宝咳嗽很厉害怎么办 宝宝深夜咳嗽很厉害怎么办 2岁宝宝发热37.6怎么办 篮球气嘴慢跑气怎么办 4个月宝宝偏胖怎么办 4个月婴儿偏胖怎么办 6岁儿童偏胖怎么办 打篮球撞到头颈椎痛怎么办 血燥热引起的皮肤瘙痒怎么办 坐时间久了屁股疼怎么办 屁股坐久了疼怎么办 屁股坐久了痛怎么办 坐多了屁股痛怎么办 上班坐的屁股痛怎么办 膝关节手术后康复膝盖疼怎么办 上下楼膝关节疼膝盖疼怎么办 跑步后关节疼该怎么办 后滚翻翻不过去怎么办 走太多路小腿疼怎么办 踢毽子以后期盖右腿内彻疼怎么办 大学体育选修课挂了怎么办 当天贴的砖踩了怎么办 刚贴的瓷砖踩了怎么办 长胶底板太轻怎么办 乒乓球拍胶皮不粘了怎么办 乒乓球拍子胶片太滑怎么办 新买的包黏黏的怎么办 卫星锅收不到台怎么办 养殖厂被卫星拍住怎么办 中六卫星无信号怎么办 晒出成片的斑怎么办 太阳晒出胳膊上长斑怎么办 宇航员在太空死后怎么办 太阳暴晒起的斑怎么办