《自動機理論、語言和計算導論》學習第4天,p49-p67總結,總計19頁。
一、技術總結
1.Deterministic Finite Automata(DFA) vs Nondeterministic Finite Automata(NFA)
(1)DFA定義
(2)NFA定義
A "nonedeterministic" finite automata has the power to
先看個例子,有一個IntegerPrinter類,裏面有一個printf方法打印一個integer類型的值。
public class Main {
public static void main(String[] args) {
IntegerPrinter integerPrinter = new IntegerPrinter(123);
integer
《Programming Abstractions in C》學習第80天,p338-p346,總計9頁。
一、技術總結
棧的實現包括入棧、出棧、判斷棧是否為滿,判斷棧是否為空等。作者結合RPN計算器來實現,稍顯無聊。
/*
* File: rpncalc.c
* ---------------
* This program simulates an electronic calculato