Dies ist eine statische Kopie unseres alten Forums. Es sind keine Interaktionen möglich.
This is a static copy of our old forum. Interactions are not possible.

doofi

Praktikant

  • "doofi" started this thread

Posts: 18

Date of registration: Aug 9th 2002

1

Monday, August 26th 2002, 5:32pm

kontextfreiheit ?

was genau ist "kontextfreiheit" eigentlich, wie wird sie definiert ? Ich benutze das wort die ganze zeit, aber so genau was es ist weiss ich auch nicht. thx !

Diktator

Senior Schreiberling

  • "Diktator" is male

Posts: 605

Date of registration: Feb 12th 2002

Location: Region Hannover

Occupation: Gartenbau

2

Monday, August 26th 2002, 5:52pm

so erkläre ich es mir:

beachte die linke seite einer jeden produktion: steht dort überall nur ein nicht-terminal, so ist die grammatik kontextfrei. stehen dort hingegen kombinationenen aus nicht-terminalen und / oder terminalen, so dann ist die grammatik kontextsensitiv, d.h. nicht ontextfrei, weil die produktionen nur im bestimmten kontext verwendet werden dürfen. dazu folgendes beispiel:
aX->aa ist eine kontextsensitive produktion, da für X nur dann a ersetzt werden kann, wenn vor dem X ein a steht, also aX.

ich hoffe, das stimmt so.
Diktator
Holzhacken ist deshalb so beliebt, weil man bei dieser Tätigkeit den Erfolg sofort sieht. - Albert Einstein

doofi

Praktikant

  • "doofi" started this thread

Posts: 18

Date of registration: Aug 9th 2002

3

Monday, August 26th 2002, 5:55pm

also ist dann AAa -> x auch kontextsensitiv?

ist also die definition das vorhandensein von nur einem nicht-terminal auf der linken seite ?

danke schonmal !

cowhen

Muuuh!

  • "cowhen" is male

Posts: 1,374

Date of registration: Dec 13th 2001

4

Monday, August 26th 2002, 6:05pm

eine grammatik ist dann kontextfrei, wenn auf der linken seite nur nonterminals stehen. => im umkehrschluss:

Quoted

ist also die definition das vorhandensein von nur einem nicht-terminal auf der linken seite ?
jau.
plenty of time to relax when you are dead