Download presentation

Presentation is loading. Please wait.

1
**CS2303-THEORY OF COMPUTATION**

&& Department of nskinfo-i education CS2303-THEORY OF COMPUTATION Chapter: RECENT DEVOLOPMENTS IN LANGUAGE THEORY

2
**Formal Languages & Automata**

Mathematics Pure applied Mechanics, (Fluid Dynamics, etc) Analysis Statistics Algebra Discrete Mathematics Graph Theory Fuzzy Sets Logic Formal Languages & Automata

3
**Formal Languages & Automata**

Cornerstone of Theoretical Computer Science Origin & Motivation from different sources

4
**New Applications: 1. Cryptography**

2. Graphics and Artificial Intelligence 3. Pattern Recognition 4. DNA computing.

5
**Formal Languages Automaton**

An abstraction of general characteristics of programming languages. Automaton A construct which possesses all the indispensable features of a digital computer.

6
Language A system suitable for the expression of certain ideas, facts or concepts, including a set of symbols and rules for their manipulation. To study language mathematically we need a mechanism to describe them.

7
**Preliminaries X – Finite Alphabet X* - Set of finite words Example**

X = {a, b} X* = {λ, a, b, aa, ab, bb, }

8
**Let L X* – language a a . . . a (n times) = an; If X = {a, b} then**

L = {anbn : n ≥ 1} is a language Characterizing L by finite set of rules, called Grammars, is Formal Languages.

11
**DNA – Deoxyribonucleotide**

DNA – molecules are made up of Adenine Cytocine Thymine Guanine nitrgen bounded bases DNA exists in double stranded linear or circular form. DNA molecules are strings (words) over

12
DNA Sequence A T C G A T G C G C A G T T A G C T A C G C G T C A

13
**Protein – String over twenty amino acids**

RNA – String over four ribonucleotide

14
**Different variants of words**

Circular words Infinite words, Bi-infinite words Two dimensional words (arrays) Infinite arrays Chain code pictures

15
**Circular words - Motivated by the structure of DNA sequences**

A circular word c is We denote it by a1a2 … an. ie… a1a2 … an is one linearlized form of C.

16
**Example: = aabbaa = bbaaaa = baaaab = …**

Example: = aabbaa = bbaaaa = baaaab = ….. In other words circular word c is an equivalence class in X* under the relation defined as x y if y is a cyclic permutation of x. Collection of all circular words is denoted as X .

17
**Infinite words Infinite word is a function u : N **

We represent infinite word as u = u1u2 … (a sequence of elements of ) Example: = {a, b} u = abaabb…

18
- Set of all infinite words over - Set of all finite and infinite words over L - -language Bi-infinte words are functions from integers Z to .

19
**Array over is of the form**

** - collection of all arrays over If = { o, x}, then Collection of arrays is called picture languages.

20
**Kolam is a traditional art practiced extensively**

in the southern part of India, for decorating courtyards of dwellings.

23
**Chain code picture languages**

24
**Position Vector or generalized Parikh Vector**

u ; = (a1, a2, , an) P(u) = (p1, p2, , pn) where where Ai gives all the positions of the letter ai in the word u. Example: = {a, b} u = abaa u = ababab… = (ab) ,

25
**Results If u and if p(u) = (p1, p2, . . . pn) then**

(i) p1 + p pn = 1 and If u * (ii) p1 + p pn = 1 – (1 / 2n ) . b b2 ab ba b a a2 a

26
Definition L - line language if there exists a line l in R2 such that L = { x : p(x) l }. l – language line of L. Examples 1. L = (anbn) (anbn) line language lies on y = x/(2n) 2. L = (a* b) a - line language lies on x + 2y = 1

27
Grammar for English language tells us whether a particular sentence is well formed or not. Typical rule of English grammar <sentence> <noun phrase> <verb pharse> < noun phrase> <article > <noun> < verb phrase > < verb > < article > A / The < noun > boy / dog <verb> runs The boy runs

28
<sentences> < noun phrase > < verb phrase > < article > < noun > <verb> The boy runs

29
S aSb, S ab Replace S by aSb or ab S – variable; a, b – constants S ab S aSb aabb = a2b2 S aSb aaSbb aaabbb = a3b3 L = {anbn : n ≥ 1}

30
L-Systems DNA Computing Membrane Computing

31
L-Systems

32
V R Dare, MCC

33
V R Dare, MCC

34
Aristid Lindenmayer ( ) was a biologist who studied the growth patterns of various types of Algae. He devised L-systems in 1968 to provide a formal description of such simple multi-cellular organisms. Later, this system was extended to describe higher plants and complex structures.

35
He found some very many interesting properties in the geometry of a tree, the blood vessels, a cauliflower, the roots of a plant, or a fern. One interesting property is the property of self similarity. He also found that several mathematicians like Cantor, Sierpinski, Koch, Hilbert etc. had already studied this property, and have defined several interesting mathematical objects. We will discuss about a few

36
**generating realistic plant like images like trees, bushes and flowers.**

L-systems are used in: generating realistic plant like images like trees, bushes and flowers. for producing generative art for producing music using algorithmic composition techniques to produce fractal images to produce antennas and integrated circuits to hold enormous amount of memory to build robust buildings with minimum weight and maximum strength V R Dare, MCC

37
The distinguishing feature of an L System over the formal language is that in an L- system the production rules are applied in parallel

40
Cantor Dust variables : { A, B } start : A {starting character string} rules : (A → ABA), (B → BBB) Let A mean "draw forward" and B mean "move forward". This produces the famous Cantor’s fractal set on a real

41
Fibonnacci sequence If we define the following simple grammar: variables : { A, B } rules : (A → B), (B → AB) then this L-system produces the following sequence of strings: n = 0 : A n = 1 : B n = 2 : AB n = 3 : BAB n = 4 : ABBAB n = 5 : BABABBAB n = 6 : ABBABBABABBAB n = 7 : BABABBABABBABBABABBAB

44
**Koch Island Start: F+F+F+F p: F -> F+F-F-FF+F+F-F**

F: draw +: move right -: move left

45
Plant images

46
**Start: F rule: F -> F[-F]F[+F][F]**

Start: F rule: F -> F[-F]F[+F][F]

47
**Other visually appealing shapes produced by L systems**

48
**plant-like objects produced by L systems**

angle 22.5 START -> F F -> FF-[-F+F+F]+[+F-F-F]

49
DNA Computing

51
**DNA – Deoxyribonucleotide**

DNA – molecules are made up of Adenine Cytocine Thymine Guanine nitrgen bounded bases DNA exists in double stranded linear or circular form. DNA molecules are strings (words) over

52
**Model the action of restriction enzymes on DNA – sequences**

Define an algebraic structure on the set of all DNA-Sequences.

53
**Splicing Operation on DNA sequences occurs in 2-steps**

Step – 1: Cutting DNA modules by restriction enzymes. Step – 2: Ligase enzyme binds them together.

54
**Restriction enzymes added (i) DpnI, (ii) Bal I Dpn I GA TC **

Step - 1 Restriction enzymes added (i) DpnI, (ii) Bal I Dpn I GA TC Acts on CT AG x1 x2

55
Bal I T G G C C A acts on A C C G G T

56
**Restricted Enzymes added are Toq I, Sc1NI, HhaI.**

Taq I Sc1nI Hha I

57
**Consider the DNA-sequences**

= … … where N is any arbitrary deoxyribonucleotide. Apply the enzyme EcoRI on EcoRI operates at six term sequence The cut takes place at x. The cut is a staggered one. N G A T C N C T A G A T G N N C T A … …

58
Step 2: The staggered strands of DNA reassociate if the ends are in the neighbourhood of each other by a chemical called “ligase”. Consider two DNA sequences, and . Apply restricted enzyme and it cuts and . After reassociation original modules are formed. Two new hybrid molecules are formed by the left half of the first of the original molecule reassociated with the right half of the second and the right half of the first with the left half of the second.

59
**Questions to be analyzed**

Suppose we are given a finite set M of DNA sequences and a finite set of restriction enzymes and ligase enzymes. What is the nature of the language consisting of all DNA modules that can arise through the action of restriction enzymes and ligase enzymes.

60
Splicing rule over an alphabet V is u1 u2 $ u3 u4 where u1, u2, u3, u4 V*, $ , are special symbols not in V. For the splicing rule r = u1 u2 $ u3 u4, and for x, y, w, z V* , (x, y) {w, z} if x = x1u1u2x2, y = y1u3u4y2, z = x1u1u4y2, w = y1u3u2x2 for x1, x2, y1, y2 V*. A Splicing scheme – (V, R) V – finite alphabet R – a set of splicing rule over V. r

61
**For a splicing scheme h = (V, R) and L V*,**

n (L) = { w, w : (w1, w2) {w, w } for some w1, w2 L and r R} A Splicing system or H-system is H = (V, A, R) V – Alphabet A V* - initial language R – set of splicing rules Language accepted by H is L(H) = *(A) r

62
**An extended H-system H = (V, T, A, R)**

V – variables, T – terminal alphabet A V* - initial language R – set of splicing rules L(H) = *(A) T H – system is finite if A, R are finite Results Every finite H system generates only regular languages. The inclusion is strict. A language is regular iff it is generated by a extended finite H- system.

63
**Generation of words uaxbv, wcxdz I (a, x, b), (c, x, d) – patterns**

The new words formed are u a x d z and w c x b v u a x b v w c x d z The language generated by H is the minimal subset of A* which contains I and closed under the operation of splicing. L(H) – languages generated by the splicing system H. Recognizable languages are also morphic images of languages generated by splicing system H.

64
MEMBRANE COMPUTING

66
Cell has a complex structure with several compartments called Organelles. Eg: Nucleus, Golgi apparatus, Ribosomes ,... Cell and these compartments are covered by cell membrane called Plasma Membrane. Membrane is a phospholipid bilayer (2 layers of phospholipid molecules) in which protein, cholestrol, steriods and other molecules are embedded

69
**Plasma membrane is only partially permeable**

some non changed molecules cross the membrane almost freely Larger molecules can cross a membrane if they are assisted Charged ions pass selectively from a region to another one

70
Basic functions of a biological membrane is to define compartments and to relate compartments to their environment. Ensures some molecules to stay in the Cell. Blocks some substance like toxic molecules to stay out of Cell. Allows some molecule (waste products) to leave the Cell. Allows nutrients to enter the Cell.

71
Membrane Structure Hierarachical arrangement of membranes - all of them placed in a main membrane called Skin Membrane. A Membrane without Membrane inside is called Elementary Membrane.

72
**Tree associated with the membrane**

Example Skin membrane 1 1 2 4 2 3 4 5 6 5 7 3 8 9 region 6 7 9 8 Tree associated with the membrane Elementary membrane

73
Region of a Membrane Multiset of Objects Evolution rules (molecules inside (transformation of the membrane) molecules)

74
**Each region r contains evolution rules**

Rule is of the form a (bc, in) or a (bc, out) a (bc, here)

75
**a (bc, in) a (bc, here) a (bc, out)**

76
**Re- writing P- system = (V, T, μ, M1, M2, R1, R2)**

V = {a, b, c, d, d’ ,e, e’} ; T = {a, b, c} M1 = {de} ; M2 = Φ = R1 = {(d ad’b, here), (e ce’, in), (d ab, here) (e c, out)} ; P1 = Φ R2 = { (d’ d, out), (e’ e, here) } ; P2 = Φ 1 2

77
**Computations {anbncn : n1} abc de abe ad'be ad'bce' ad'bce aabbce**

78
Questions ?

Similar presentations

Presentation is loading. Please wait....

OK

L-Systems and Procedural Plants CSE 3541 Matt Boggus.

L-Systems and Procedural Plants CSE 3541 Matt Boggus.

© 2017 SlidePlayer.com Inc.

All rights reserved.

Ads by Google

Ppt on area of parallelogram and triangles worksheet Mis ppt on hospital Ppt on the french revolution and the idea of the nation Ppt on forward rate agreement definition Ppt on cse related topics about psychology Educational backgrounds for ppt on social media Ppt on network theory books Ppt on cash reserve ratio Ppt on regular expression tutorial Ppt on nitrogen cycle and nitrogen fixation in plants