Skip to content
/ 2nf Public

A customization of the of the CYK Algorithm.

Notifications You must be signed in to change notification settings

0ur0bor0s/2nf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

2nf

2NF is the variation of CNF which allows rules A-> xy where x and y can be either a single variable or a single terminal. This program, given a grammar file containing the production rules of a context free grammar, is able to parse a given string to determine whether the string is generated accordiding the context free grammar in 2nf form.

The program will output YES if the grammar generates the string and NO if it does not.

Example

java Cyk grammar_file aabba
YES

More Info

More informaiton about the CYK algorithm and context-free languages can be found here: https://en.wikipedia.org/wiki/CYK_algorithm

About

A customization of the of the CYK Algorithm.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages