Gramática irrestrita

Em Teoria da computação, a Gramática irrestrita (conhecida também como Gramática com estrutura de frase) é também conhecida como Tipo 0 da Hierarquia de Chomsky, que são aquelas às quais nenhuma limitação é imposta. São capazes de gerar linguagens recursivamente enumeráveis. O universo das linguagens que se podem definir através dos mecanismos gerativos definidos pela gramática corresponde exatamente ao conjunto das linguagens que esta classe de gramática é capaz de gerar.

Definição formal

Uma gramática irrestrita é uma gramática formal , onde é um conjunto de símbolos não-terminais, é um conjunto de símbolos terminais, contém as produções da forma onde e são cadeias de símbolos em e não é uma cadeia vazia. Além disso, é o símbolo inicial. Como o nome implica, não há restrições nos tipos de produções que gramáticas irrestritas podem ter.

Vale notar que e não são necessariamente disjuntos, uma vez que gramáticas irrestritas não fazem distinção entre símbolos terminais e não-terminais. Tal distinção existe apenas para indicar quando parar ao gerar sentenças da gramática.

Gramáticas irrestritas e máquinas de Turing

Pode ser mostrado que gramáticas irrestritas caracterizam as linguagens recursivamente enumeráveis. Isto é o mesmo que dizer que para toda gramática irrestrita , existe alguma máquina de Turing capaz de reconhecer e vice-versa. Dada uma gramática irrestrita, tal máquina de Turing é simples de construir como uma máquina de Turing não-determinística , de duas fitas. A primeira fita contém a entrada w a ser testada e a segunda fita é usada pela máquina para gerar sentenças de . é como segue:

  1. Comece na esquerda da segunda fita e repetidamente escolha entre mover para a direita ou selecionar a posição atual da fita.
  2. De modo não-determinístico, escolha uma produção das produções em .
  3. Se aparecer em alguma posição na segunda fita, substitua por neste ponto, possivelmente deslocando os símbolos da fita para a esquerda ou direita dependendo dos tamanhos relativos entre e , i.e., se for maior que , desloca os símbolos da fita para a esquerda.
  4. Compare a sentença resultante na fita 2 com a palavra da fita 1. Se forem iguais, aceite. Caso contrário, volte para o passo 1.

É fácil perceber que esta máquina de Turing irá gerar todas (e apenas) as sentenças de na segunda fita depois que o último passo for executado um número arbitrário de vezes. Assim a linguagem é recursivamente enumerável. A construção reversa também é possível. Dada uma máquina de Turing, é possível criar uma gramática irrestrita.

Propriedades computacionais

Como pode ser esperado da equivalência entre gramáticas irrestritas e máquinas de Turing, o problema uma cadeia w pertencer ou não à linguagem de uma gramática irrestrita é indecidível. É perfeitamente possível criar uma gramática irrestrita universal, capaz de aceitar qualquer linguagem de outra gramática irrestrita, dada a descrição da linguagem, assim como é possível criar uma máquina de Turing universal. Assim, seria teoricamente possível construir uma linguagem de programação baseada em gramáticas irrestritas (e.g. Thue).

Teoria da computação

Teoria de autômatos: linguagem formal e gramática formal
Hierarquia
Chomsky
Gramática Linguagem Reconhecedor
Tipo-0 Irrestrita Recursivamente enumerável Máquina de Turing
-- -- Recursiva Máquina de Turing que sempre para
Tipo-1 Sensível ao contexto Sensível ao contexto Autômato linearmente limitado
Tipo-2 Livre de contexto Livre de contexto Autômato com pilha
Tipo-3 Regular Regular Autômato finito


Ver também

Read other articles:

Government formed of workers' councils For list of Soviet republics of the 20th century, see Soviet Republic. For the Soviet republics of the Soviet Union, see Republics of the Soviet Union. For other uses, see Soviet (disambiguation). This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Soviet republic system of government – news&...

Antica civiltà egiziaMappa dell'antico Egitto, con le città più importanti e i siti del periodo dinastico (3150 - 30 a.C.).RegioneEgitto e Sudan Sito tipoNecropoli di Giza Altri sitiNecropoli di Tebe Seguita daCiviltà romana La Grande Sfinge e la Piramide di Chefren a Giza. Storia dell'Egitto Storia dell'Egitto Egitto preistorico – >3900 a.C. ANTICO EGITTO Periodo Predinastico c. 3900 – 3150 a.C. Periodo Protodinastico c. 3150 – 2686 a.C. Antico Regno 2700 – 2192 a.C. Primo per...

1932 film For other uses, see Music box (disambiguation). The Music BoxLobby card, 1932Directed byJames ParrottWritten byH.M. WalkerProduced byHal RoachStarringStan LaurelOliver HardyCinematographyLen PowersWalter LundinEdited byRichard C. CurrierMusic byHarry GrahamMarvin HatleyLeroy ShieldDistributed byMetro-Goldwyn-MayerRelease date April 16, 1932 (1932-04-16) (US) Running time29:16CountryUnited StatesLanguageEnglish The Music Box is a Laurel and Hardy short film comedy ...

Сен-Донан, Сен-Дона́н (фр. Saint-Donan) — муніципалітет у Франції, у регіоні Бретань, департамент Кот-д'Армор. Замок Ейлен-Донан (шотл. гел. Eilean Donan, у перекладі «Острів Донана») — замок, розташований на скелястому острові, що у фіорді Лох-Дуйх у Шотландії. Ейлін Донан (англ. Eilean Donan, ш

Territorium im Heiligen Römischen Reich Grafschaft Delmenhorst Wappen Karte Karte des Raums um Bremen von 1655 mit der Grafschaft Delmenhorst Heutige Region/en DE-NI Reichstag Reichsfürstenbank/Niederrheinisch-Westfälisches Reichsgrafenkollegium: 1 Stimme ab 1647 (über Oldenburg) Reichsmatrikel 1663: 2 Reiter, 14 Fußsoldaten Reichskreis niederrheinisch-westfälisch (über Oldenburg) Hauptstädte/Residenzen Delmenhorst Dynastien Haus Oldenburg Konfession/Religionen lutherisch Sprache/n De...

Cyclisme sur route aux Jeux olympiques d'été de 1984 Généralités Sport Cyclisme sur route Organisateur(s) CIO Lieu(x) Los Angeles Date 29 juillet 1984 Nations 16 Participants 45 Palmarès Vainqueur Connie Carpenter Deuxième Rebecca Twigg Troisième Sandra Schumacher Navigation Séoul 1988 modifier La course en ligne féminine de cyclisme sur route, épreuve de cyclisme des Jeux olympiques d'été de 1984, a lieu le 29 juillet 1984 à Los Angeles aux États-Unis. C'est la première fois ...

1994 video gameThe Lion KingDeveloper(s)Westwood StudiosDisney SoftwareEast Point Software (DOS)Syrox Developments (Master System and Game Gear)Publisher(s)Virgin Interactive EntertainmentDirector(s)Louis CastleProducer(s)Louis CastlePatrick GilmorePaul CurasiDesigner(s)Seth MendelsohnProgrammer(s)Rob PoveyBarry GreenMartin Cook, Mark Rundle (DOS)Artist(s)John FioritoAlex SchaefferChristina VannAnn-Bettina ColaceComposer(s)Super NESFrank KlepackiDwight OkaharaJohn WrightZack BremnerPatrick Co...

Africa/Ndjamena12/07/N/015/03/EDari efele.net berdasarkan data 2012cData dari berkas zone.tab di tz databaseKode negara (ISO 3166-1 alpha-2)TDKoordinat (ISO 6709)+1207+01503Data lain dari tz databasePerbedaan waktu UTC (ISO 8601)+01:00Perbedaan waktu DST UTC (ISO 8601)+01:00Pranala luar timezoneconverter.com travelmath.com twiki.org Africa/Ndjamena adalah tanda pengenal zona waktu untuk berkas zona di basis data zona waktu IANA. Rincian datanya sebagai berikut: TD +1207+01503 Africa/Ndjamena ...

この記事の主題はウィキペディアにおける独立記事作成の目安を満たしていないおそれがあります。目安に適合することを証明するために、記事の主題についての信頼できる二次資料を求めています。なお、適合することが証明できない場合には、記事は統合されるか、リダイレクトに置き換えられるか、さもなくば削除される可能性があります。出典検索?: 庭野結...

У Вікіпедії є статті про інші значення цього терміна: Генерал (значення). Погон генерала Британської армії Генерал (англ. General (United Kingdom) — найвище військове звання генералітету в Британській армії в мирний час. Не зважаючи на те, що звання нижче за ранг фельдмаршал, воно ...

Esta página cita fontes, mas que não cobrem todo o conteúdo. Ajude a inserir referências. Conteúdo não verificável pode ser removido.—Encontre fontes: ABW  • CAPES  • Google (N • L • A) (Outubro de 2012) Best of the Doobies Álbum de grandes êxitos de The Doobie Brothers Lançamento 29 de outubro de 1976 Gravação Warner Brothers Studios Gênero(s) rock Duração 45:08 Gravadora(s) Warner Brothers Produção Ted Temp...

Swiss composer Jürg Hanselmann, 2013 Jürg Hanselmann (born 23 September 1960) is a Swiss-Liechtenstenian pianist, composer and music educator. He teaches piano and composition at the Sargans Cantonal School. Life Born in Grabs, Hanselmann grew up in Schaan (Principality of Liechtenstein) and received his first piano lessons from Regina Enzenhofer at the Liechtenstein Music School in Vaduz. His first compositions date back to his early youth. At the age of 17, he was a student of Albert Schn...

1969 studio album by Rod StewartAn Old Raincoat Won't Ever Let You DownStudio album by Rod StewartReleasedNovember 1969 (US)February 1970 (UK)RecordedJune–August 1969StudioLansdowne and Olympic Studios, LondonGenreBritish folk rock[1]Length32:47LabelVertigo, Mercury, FontanaProducerRod Stewart, Lou ReiznerRod Stewart chronology An Old Raincoat Won't Ever Let You Down(1969) Gasoline Alley(1970) U.S. release title / coverThe Rod Stewart Album (Mercury) Singles from An Old Rain...

2020 noir mystery novel by S. A. Cosby Blacktop Wasteland is a noir mystery novel written by S. A. Cosby and published in July 2020 by Flatiron Books.[1][2][3][4][5]Blacktop Wasteland First edition coverAuthorS.A. CosbyCountryUnited StatesLanguageEnglishGenreCrimethrillerPublisherFlatiron Books (US)Headline (UK)Publication date14 July 2020Media typePrint (hardcover), e-book, audioPages304(1st ed. Hardcover)ISBN978-1250252685 (1st ed. Hardcover)OCLC...

1965 album by Stan Kenton Stan Kenton Conducts the Los Angeles Neophonic OrchestraStudio album by Stan KentonReleased1965RecordedSeptember 27, 28 & 29, 1965StudioCapitol (Hollywood)GenreJazzLength51:56LabelCapitol MAS 2424ProducerDavid Axelrod and John PalladinoStan Kenton chronology Kenton / Wagner(1964) Stan Kenton Conducts the Los Angeles Neophonic Orchestra(1965) Stan Kenton Plays for Today(1966) Stan Kenton Conducts the Los Angeles Neophonic Orchestra is an album by bandleader St...

Governing body of Norwegian football Norwegian Football FederationUEFAFounded30 April 1902HeadquartersOsloFIFA affiliation1908UEFA affiliation1954PresidentLise KlavenessWebsitefotball.no The Norwegian Football Federation (Bokmål: Norges Fotballforbund, Nynorsk: Noregs Fotballforbund; NFF) is the governing body of football in Norway. It was formed in 1902 and organises the men's and women's national teams, as well as the league systems for men and women (whose top levels are respectively the ...

В Википедии есть статьи о других людях с такой фамилией, см. Тихонов; Тихонов, Николай. Николай Тихонов Дата рождения 22 ноября (4 декабря) 1896[1] Место рождения Санкт-Петербург, Российская империя[1] Дата смерти 8 февраля 1979(1979-02-08)[2][3][…] (82 года) Место смерти Мос...

This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these template messages) You can help expand this article with text translated from the corresponding article in Hungarian. (June 2021) Click [show] for important translation instructions. Machine translation, like DeepL or Google Translate, is a useful starting point for translations, but translators must revise errors as necessary and confirm that the transla...

American orthopedic surgeon and co-founder of the Kerlan-Jobe Orthopaedic Clinic Frank JobeJobe at Dodger Stadium in 2008BornFrank Wilson Jobe(1925-07-16)July 16, 1925Greensboro, North Carolina, U.S.DiedMarch 6, 2014(2014-03-06) (aged 88)Santa Monica, California, U.S.NationalityAmericanEducationLa Sierra UniversityLoma Linda UniversityOccupationOrthopedic surgeonKnown forInventor of Tommy John surgerySpouseBeverly JobeChildren4 Frank James Jobe (July 16, 1925 – March 6, 2014)...

2021 compilation album by Geoffrey Gurrumul YunupinguThe Gurrumul StoryDeluxe, vinyl and digital artworkCompilation album by Geoffrey Gurrumul YunupinguReleased10 September 2021Genre World Aboriginal classical crossover Length59:40LabelDecca AustraliaGeoffrey Gurrumul Yunupingu chronology Djarimirri(2018) The Gurrumul Story(2021) The Gurrumul Story is the first compilation album from Geoffrey Gurrumul Yunupingu. The album was announced on 6 August 2021 and was released on 10 September...