Consider the following languages: I. \(?^? ?^??^??^?| ? + ? = ? + ?, where \text{ ?}, ?, ?, ? ≥ 0\) II. \({?^??^??^??^?| ? = ? \text{ and } ? = ?, where \text{ ?}, ?, ?, ? ≥ 0}\) III. \(?^??^??^??^?| ? = ? = ? \text{ and } ? ≠ ?, where \text{ ?}, ?, ?, ? ≥ 0\) IV. \(?^??^??^??^?| ?? = ? + ?, where \text{ ?}, ?, ?, ? ≥ 0\) Which of the languages above are context-free?

Consider the following languages: I. \(?^? ?^??^??^?| ? + ? = ? + ?, where \text{ ?}, ?, ?, ? ≥ 0\) II. \({?^??^??^??^?| ? = ? \text{ and } ? = ?, where \text{ ?}, ?, ?, ? ≥ 0}\) III. \(?^??^??^??^?| ? = ? = ? \text{ and } ? ≠ ?, where \text{ ?}, ?, ?, ? ≥ 0\) IV. \(?^??^??^??^?| ?? = ? + ?, where \text{ ?}, ?, ?, ? ≥ 0\) Which of the languages above are context-free? Correct Answer I and II only

(i) and (ii) can be recognized using a single stack while (iii) has two comparisons hence it will require 2 stacks which means it is not cfl.

(iv) is not cfl because a pda can not do non linear arithmetics.

Related Questions

The following are the conditions for selecting list of a suitable candidates to be called for interview after the written test for the recruitment is conducted/ organized for management-level persons of a multi-national company. For providing accounting services and sales the candidates must (a) be holding a graduation in basic science with 65% or above or B. E degree with 55% and above marks (b) have passed the written test with 70% or above marks (c) the age must be in the group 25 to 30 years as on 1/4/18 (d) have experience in an accounting firms for three years and diploma in accounting with 60% or above marks (e) be presently drawing CTC of 6 Lakhs per annum and above In case the applicant who satisfies all other terms above except 1) at (a) above, then be referred as Junior Accountant 2) at (d) & (e) above then be referred as Trainee-Accountant Satisfying all the above with experience of 5 years then be referred as senior-Accountant Satisfying all the above criteria (a-e) with CA/ ICWA / MBA (Finance) then be refereed as manager (Accounts) Read all the above information and answer the following question Shravani has passed H. SC with 72% of marks. She has done diploma in accountancy with 62% of marks. She was working with an organization in the field of accounting in the field of accounting from 4 years and was drawing CTC of 6.5 Lakhs presently. She is 28yrs as on July 2018. She may referred for the position of: