Dsy Network www | forum | my | didattica | howto | wiki | el goog | stats | blog | dona | rappresentanti
Homepage
 Register   Calendar   Members  Faq   Search  Logout 
.dsy:it. : Powered by vBulletin version 2.3.1 .dsy:it. > Didattica > Corsi G - M > Linguaggi formali e automi > Domanda Veloce Esempio 3.2
Pages (2): [1] 2 »   Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
saradid
.grande:maestro.

User info:
Registered: Aug 2003
Posts: 753 (0.10 al dì)
Location:
Corso: Informatica Serale
Anno: 2
Time Online: 27 Days, 15:44:06: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
Domanda Veloce Esempio 3.2

Ciao,
forse sto capendo questa materia , incredibile....
pero' ho un dubbio sulle slide

esempio 3.2

linguaggio a^n b ^n c^n con n >= 1

Sulle slide le regole di produzione indicate sono

S -> aSBC, S -> aBC, CB -> BC, aB -> ab, bB -> bb, bC-> bc, cC-> cc


pero' scusate, come si puo' generare allora con queste regole
la parola abc che ha n=1 ??????????

grazie a chi mi aiutera'

07-07-2009 10:48
Click Here to See the Profile for saradid Click Here to See the Blog of saradid Click here to Send saradid a Private Message Find more posts by saradid Add saradid to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
saradid
.grande:maestro.

User info:
Registered: Aug 2003
Posts: 753 (0.10 al dì)
Location:
Corso: Informatica Serale
Anno: 2
Time Online: 27 Days, 15:44:06: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ah nooooooo, ho capito....

si fa cosi'??!??!
APPLICO IN ORDINE LE REGOLE

S --> a B C

APPLICO LA aB-->ab

e mi diventa

abC

APPLICO LA bC-->bc

e mi diventa finalmente la parola abc !!!!!!!!!!!
e' corretto?!?

07-07-2009 10:52
Click Here to See the Profile for saradid Click Here to See the Blog of saradid Click here to Send saradid a Private Message Find more posts by saradid Add saradid to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
poi_1969
.grande:maestro.

User info:
Registered: Aug 2005
Posts: 507 (0.07 al dì)
Location: milano
Corso: informatica
Anno:
Time Online: 10 Days, 22:40:57 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

yes

07-07-2009 10:58
Click Here to See the Profile for poi_1969 Click here to Send poi_1969 a Private Message Find more posts by poi_1969 Add poi_1969 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
saradid
.grande:maestro.

User info:
Registered: Aug 2003
Posts: 753 (0.10 al dì)
Location:
Corso: Informatica Serale
Anno: 2
Time Online: 27 Days, 15:44:06: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

e' fantastico!!!!! penso di avere superato uno scoglio!!!!!!!!!

pero' se in generale all'esame mi dovesse chiedere di le regole di produzione per generare il linguaggio non generale con ^n , ma ad esempio abc

le potrei dare come regole di produzione delle regole arbitrarie mie?

ad esempio potrei dare come regole
1) S->aSbc
2) S-->parola vuota

APPLICO LA PRIMA
S-->aSbc -->
APPLICO LA SECONDA
e ottengo abc

cioe' alla fine le regole sono arbitrarie?

perche' se e' cosi' il linguaggio abc lo potrei generare anche con queste regole

S-->aSBC
S-->PAROLA VUOTA
BC-->bc

applico la prima
S-->aSBC
Applico la seconda
aBC
applico la terza e ottengo abc , sbaglio qualcosa o va bene cosi'?
cioe' io mi creo regole arbitrarie in questo esempio?

07-07-2009 11:41
Click Here to See the Profile for saradid Click Here to See the Blog of saradid Click here to Send saradid a Private Message Find more posts by saradid Add saradid to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
poi_1969
.grande:maestro.

User info:
Registered: Aug 2005
Posts: 507 (0.07 al dì)
Location: milano
Corso: informatica
Anno:
Time Online: 10 Days, 22:40:57 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

dai solo quelle delle dispense e basta.
ma devi sapere le dimostrazioni bene in modo formale: è molto rigido in questo senso.


ciao

07-07-2009 11:51
Click Here to See the Profile for poi_1969 Click here to Send poi_1969 a Private Message Find more posts by poi_1969 Add poi_1969 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
saradid
.grande:maestro.

User info:
Registered: Aug 2003
Posts: 753 (0.10 al dì)
Location:
Corso: Informatica Serale
Anno: 2
Time Online: 27 Days, 15:44:06: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

dai , ma le definizioni le so , ma la palano mi ha bocciato l'altra volta perche' non avevo proprio capito queste cose,
mi puoi dire se e' corretto quello che ho scritto sopra?
cioe' alla fine per creare il linguaggio abc posso utilizzare indifferentemente i 2 esempi che ho fatto?

07-07-2009 11:58
Click Here to See the Profile for saradid Click Here to See the Blog of saradid Click here to Send saradid a Private Message Find more posts by saradid Add saradid to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
poi_1969
.grande:maestro.

User info:
Registered: Aug 2005
Posts: 507 (0.07 al dì)
Location: milano
Corso: informatica
Anno:
Time Online: 10 Days, 22:40:57 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

è sbagliaTO.
NON PUOI FARE DA S-> PAROLA VUOTA.
il linguaggio e a^nb^nc^n con n>0
quindi nel tuo linguaggio non puoi avere la parolo vuota che hai invece se metti la regola S->parola vuota

07-07-2009 12:20
Click Here to See the Profile for poi_1969 Click here to Send poi_1969 a Private Message Find more posts by poi_1969 Add poi_1969 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
saradid
.grande:maestro.

User info:
Registered: Aug 2003
Posts: 753 (0.10 al dì)
Location:
Corso: Informatica Serale
Anno: 2
Time Online: 27 Days, 15:44:06: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

no no....il linguaggio dell'esempio che ho fatto solo e' semplicemente abc ....non in generale a^n b^n c^n

07-07-2009 12:22
Click Here to See the Profile for saradid Click Here to See the Blog of saradid Click here to Send saradid a Private Message Find more posts by saradid Add saradid to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
poi_1969
.grande:maestro.

User info:
Registered: Aug 2005
Posts: 507 (0.07 al dì)
Location: milano
Corso: informatica
Anno:
Time Online: 10 Days, 22:40:57 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

un linguaggio con abc non comprende la parola vuota

07-07-2009 12:24
Click Here to See the Profile for poi_1969 Click here to Send poi_1969 a Private Message Find more posts by poi_1969 Add poi_1969 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
saradid
.grande:maestro.

User info:
Registered: Aug 2003
Posts: 753 (0.10 al dì)
Location:
Corso: Informatica Serale
Anno: 2
Time Online: 27 Days, 15:44:06: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

uffff....hai ragione....
quindi per le regole di produzione per il linguaggio che genera
la parola abc

potrebbero essere queste?

S-->aBC
BC-->bc

scusa lo stress ma e' importante capire bene gli esempi perche' non voglio farmi fregare all'esame

07-07-2009 12:33
Click Here to See the Profile for saradid Click Here to See the Blog of saradid Click here to Send saradid a Private Message Find more posts by saradid Add saradid to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
poi_1969
.grande:maestro.

User info:
Registered: Aug 2005
Posts: 507 (0.07 al dì)
Location: milano
Corso: informatica
Anno:
Time Online: 10 Days, 22:40:57 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

se la parola e abc ti basta solo S->abc

07-07-2009 12:39
Click Here to See the Profile for poi_1969 Click here to Send poi_1969 a Private Message Find more posts by poi_1969 Add poi_1969 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
saradid
.grande:maestro.

User info:
Registered: Aug 2003
Posts: 753 (0.10 al dì)
Location:
Corso: Informatica Serale
Anno: 2
Time Online: 27 Days, 15:44:06: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

beh si , ma mi sembrava troppo banale ;-) ....
una riga in piu' faceva vedere che avevo proprio capito come giocare come le regole... ;-)

07-07-2009 12:42
Click Here to See the Profile for saradid Click Here to See the Blog of saradid Click here to Send saradid a Private Message Find more posts by saradid Add saradid to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
poi_1969
.grande:maestro.

User info:
Registered: Aug 2005
Posts: 507 (0.07 al dì)
Location: milano
Corso: informatica
Anno:
Time Online: 10 Days, 22:40:57 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

le regole devo essere minimali in questo modo sono efficienti

07-07-2009 12:47
Click Here to See the Profile for poi_1969 Click here to Send poi_1969 a Private Message Find more posts by poi_1969 Add poi_1969 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
saradid
.grande:maestro.

User info:
Registered: Aug 2003
Posts: 753 (0.10 al dì)
Location:
Corso: Informatica Serale
Anno: 2
Time Online: 27 Days, 15:44:06: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ok! grazie , che bello avere capito una cosa che per me era veramente un casino.

07-07-2009 13:19
Click Here to See the Profile for saradid Click Here to See the Blog of saradid Click here to Send saradid a Private Message Find more posts by saradid Add saradid to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Counter65
.illuminato.

User info:
Registered: Sep 2008
Posts: 180 (0.03 al dì)
Location:
Corso:
Anno:
Time Online: 1 Day, 13:15:27 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ho un dubbio, le parole che puo generare un linguaggio del tipo: a + ab*

sono [parola vuota,a,ab^n] giusto?

19-07-2009 10:48
Click Here to See the Profile for Counter65 Click here to Send Counter65 a Private Message Find more posts by Counter65 Add Counter65 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 06:53.    Post New Thread    Post A Reply
Pages (2): [1] 2 »   Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread | Add to Bookmarks

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON
 

Powered by: vBulletin v2.3.1 - Copyright ©2000 - 2002, Jelsoft Enterprises Limited
Mantained by dsy crew (email) | Collabora con noi | Segnalaci un bug | Archive | Regolamento | Licenze | Thanks | Syndacate
Pagina generata in 0.042 seconds (81.65% PHP - 18.35% MySQL) con 26 query.