برنامه نویسی

عنوان : برنامه نویسی
گروه درخواست : برنامه نویسی C , C++ و جاوا
شرح درخواست :

Write a program with java language that takes a context free grammar in Chomsky Normal Form, and a string and runs the CYK algorithm on the grammar and the input string and determines whether the grammar accepts the input string or not. 2. Test your algorithm in part one for some examples including the following example: For an arithmetic sentence with variables x, y and z and parentheses. For example, (x-(y+z)*(x-y))+z is valid, but x+x*y(z*) is not valid, or (z+x*y is not valid. For this part, first you have to define the context free grammar then convert it to Chomsky Normal Form and then run it with the algorithm in part one.

شما هم سوال دارید ؟

از کارشناسان پاسخیاب بپرسید!