Class work #2 -- NFA and RegExp

14 views
Skip to first unread message

Akif Eyler

unread,
Feb 25, 2019, 11:40:26 PM2/25/19
to BLM
Class work #2 -- bugün saat 13'e kadar ekran resmi gönderin:

Modify and combine DFA & NFA for  L = (1+0)*00
Find an array of integers less than 50 accepted by each automaton
Do the same for the RegExp  e = /00$/

     let a = [] 
     for (let n=1; n<50; n++) {
          let w = n.toString(2)  // to binary
          if (accept(w)) a.push(n);
     }

Bonus: Put your work in your repo (must be different from Auto)

_Akif_Eyler_

Akif Eyler

unread,
Mar 5, 2019, 12:56:10 AM3/5/19
to BLM
Bu ödevde 12 eksik var -- tamamlanması gerekiyor
x = missing (hiç yapılmamış, yok) 
R = repeat (mazeretli ya da çok eksik)

En yaygın hatalar: 
* DFA tablosunun satırları String değil tek harfli olacaktı
* Programın çıktısında binary değil normal sayı isteniyor: 4,8,12...

_Akif_Eyler_

Reply all
Reply to author
Forward
0 new messages