搜索资源列表
LL(1)
- LL(1)语法分析1、实现LL(1)分析中控制程序(表驱动程序); 2、完成以下描述算术表达式的LL(1)文法的LL(1)分析程序。 G[E]: E→TE′ E′→ATE′|ε T→FT′ T′→MFT′|ε F→ (E)|i A→+|- M→*|/-LL (1) syntax analysis 1, the realization of LL (1) Analysis of control procedures (table-driven procedure
实验3
- 猴子吃桃子问题 有一群猴子摘了一堆桃子,他们每天都吃当前桃子的一半且再多吃一个,到了第10天就只余下一个桃子。用多种方法实现求出原来这群猴子共摘了多少个桃子。(Monkey eat peaches A group of monkeys picked up a pile of peaches. They ate half of the current peaches and ate one more every day. In the tenth day, the rest of the
花生米问题
- 1、Tom和Jerry轮流从堆中取出k粒花生米吃掉,k可以是1,5,10中的任意一个数字; 2、为显示规则的公平性,Jerry可以选择先取或者后取。 Jerry当然还是希望最后一粒花生米被Tom吃掉。请计算,Jerry为了达到目的应该先取还是后取(1. Tom and Jerry took out the k peanuts and ate them from the heap. K could be any number in 1, 5, and 10. 2. To show the