浙大研究生 2015-2016学年《计算机理论》期末考试英文版

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

浙江大学2015-2016学年秋冬学期

研究生《计算理论》课程期终考试试卷

考试形式:闭卷,考试时间:2016年1月15日,所需时间:120分钟

学号:姓名:专业:任课教师:金小刚题序1234567总分

得分

评卷人

Zhejiang University

Theory of Computation,Fall-Winter2015

Final Exam

1.(20%)Determine whether the following statements are true or false.If

it is true write a⃝otherwise a×in the bracket before the statement.

(a)()Let L be any regular language.Then the number of equivalence classes

respect to language L(i.e.x≈L y,if for all z∈Σ∗,xz∈L iffyz∈L)isfinite.

(b)()The language{a n b n w|w∈{a,b}∗,n∈N,and|w|=2n}is context-free.

(c)()The language{“M”“w”|M accepts w in less than2016steps}is not

recursive.

(d)()The language{“M”|M is a TM and L(M)is Context-free but L(M)is

not regular}is not recursive.

(e)()The language{“M1”“M2”|M1and M2are TMs,and M1halts on e but

M2doesn’t halt on e}is recursively enumerable,but not recursive.

(f)()The set of all primitive recursive functions is a proper subset of the set of

allµ-recursive functions.

(g)()Let A and B be two disjoint recursively enumerable languages.If A∪B

is also be recursively enumerable,then it is possible that neither A nor B is

decidable.

(h)()Let H10={“M”|M is a TM and10∈L(M)}andτ1andτ2are recursive

functions.If H10≤τ1L and H10≤τ2L,then L is recursive enumerable but not

recursive.

(i)()Suppose SAT≤P L and L∈P.Then P=NP.

(j)()Let H={“M”“w”|TM M halts on input string w},then H is NP-complete.

2.(18%)On F A and Regular Languages

Say whether each of the following languages is regular or not regular?Prove your answers.

(a)L1={w|w∈{0,1}∗and w has an equal number of0s and1s}.

(b)L2={w|w∈{0,1}∗and w has an equal number of01s and10s}.

3.(20%)On PDA and Context-Free Languages

Let L3={wca m b n|w∈{a,b}∗,where w=w R,and m,n∈N,n≤m≤2n}.

(a)Give a context-free grammar for the language L3.

(b)Design a PDA M=(K,Σ,Γ,∆,s,F)accepting the language L3.

Solution:(a)

(b)The PDA M=(K,Σ,Γ,∆,s,F)is defined below:

(q,σ,β)(p,γ)

K={}

Σ={a,b,c}

Γ={}

s=

F={}

4.(18%)On Undecidability

Classify whether each of the following languages are recursive,recursively enumerable but-not-recursive,or non-recursively-enumerable.Prove your answers,but you may not simply appeal to Rice’s theorem.

(a)L4={“M”|M is a Turing Machine,and|L(M)|>2}.

(b)L5={“M”|M is a Turing Machine,and|L(M)|≤2}.

5.(15%)On P and NP Problems

In an undirected graph G=(V,E),a Sovereign set is a vertex subset S⊆V such every edge in E has at most one endpoint in S.Let Sovereign Set={(G,k):

G is an undirected graph that contains a sovereign set of at least k vertices}.

(a)Give the definition of the class P and NP.

(b)Show that Sovereign Set is a NP problem.

(c)Prove that Sovereign Set is NP-complete.You may reduce from Clique

problem.

相关文档
最新文档