• Keine Ergebnisse gefunden

Exercise 11.1 Boolean Satisfiability

N/A
N/A
Protected

Academic year: 2021

Aktie "Exercise 11.1 Boolean Satisfiability"

Copied!
1
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Applied Automata Theory (WS 2014/2015) Technische Universit¨ at Kaiserslautern

Exercise Sheet 11

Prof. Dr. Roland Meyer, Reiner H¨ uchting Due: Tue, Jan 27

Exercise 11.1 Boolean Satisfiability

Let Σ = {∧, ∨, ¬, 0, 1, x}, rk(∧) = rk(∨) = 2, rk(¬) = 1, rk(0) = rk(1) = rk(x) = 0.

(a) Give a deterministic BUTA that recognises the satisfiable Boolean formulas over x.

(b) Use (a) to establish whether ¬(x ∧ 0) ∨ (¬x ∧ 1) and (x ∨ 0) ∧ (¬x ∧ 1) are satisfiable.

Exercise 11.2 Tree Language Acceptance

Let Σ = {a, b, c, d} with rk(a) = rk(b) = 2, respectively rk(c) = rk(d) = 0. Which of the following tree languages are accepted by some BUTA?

(a) L

1

:= {t ∈ T

Σ

| the path , 0, 01, 010, 0101, . . . in t contains an even number of a’s}.

(b) L

2

:= {t ∈ T

Σ

| t is an unbalanced tree}.

(c) L

3

:= {t ∈ T

Σ

| there are nodes u, v in t with t(u) = c, t(v) = d and u is left of v}.

(d) L

4

:= {t ∈ T

Σ

| precisely 2014 of t’s leaves are labelled by c}.

Determine which of the languages above are also accepted by a deterministic TDTA.

Exercise 11.3 NHA for Regular Languages

Similarly to ranked trees, for an unranked tree t we can also define the word obtained by reading the leaves from left to right to be the yield of t. Inductively, Yield(a) = a and Yield(a(t

1

. . . t

n

)) = Yield(t

1

) . . . Yield(t

n

). Let L ⊆ Σ

be a regular word language.

Construct an NHA accepting the language {t ∈ T

Σ

| Yield(t) ∈ L}.

Exercise 11.4 XML Validation

Create an XML document with information about a collection of 3 cars. A car has the following attributes: brand, model, year, engine, and (1 or more) add-ons. We want to store information about a brand’s owning compani(es), foundation year, and headquarters. Finally, each add-on has a name and can be electronic or non-electronic.

Give a DTD specification for car collections and use it to validate your document.

Referenzen

ÄHNLICHE DOKUMENTE

The search for the best way into the ice, the shock of the first severe storm affecting us being as we were still in open water, the painful lessons of trawling in heavy ice,

Organizarea contabilităţii de gestiune şi calculaţiei costurilor pe baze ştiinţifice în întreprinderile din industria fierului şi oţelului asigură premisele pentru

According to model estimations, the main reason for the decreasing trend of informal economy should be attributed to positive technology shocks in formal sector,.. which is

Using the comparative case studies of two companies who market to the snow and surf communities, this paper examines some challenges faced by major companies in attempting to

Previous experimental research has shown that such models can account for the information processing of dimensionally described and simultaneously presented choice

I will suggest that such structural peculiarities correspond with a fundamental semantic-pragmatic distinction (Stassen 1997:100ff.): The MC" -type equation serves the

Data on various suicide rates, means adopted for committing suicides, educational levels of suicide victims have been sourced from the NCRB.. Literacy rate data have been sourced

EBSD images with a colored overlay and an associated quartz c- axis orientation plot are indexed for each sample grid.. These c-axis orientation plots are oriented with their