{"id":154056,"date":"2023-08-02T12:54:19","date_gmt":"2023-08-02T07:24:19","guid":{"rendered":"https:\/\/www.gkseries.com\/blog\/?p=154056"},"modified":"2023-08-02T12:54:22","modified_gmt":"2023-08-02T07:24:22","slug":"consider-the-grammar-given-below-s-%e2%86%92-aa-compute-the-follow-set-of-the-non-terminal-b-and-write-the-index-values-for-the-symbols-in-the","status":"publish","type":"post","link":"https:\/\/www.gkseries.com\/blog\/consider-the-grammar-given-below-s-%e2%86%92-aa-compute-the-follow-set-of-the-non-terminal-b-and-write-the-index-values-for-the-symbols-in-the\/","title":{"rendered":"Consider the grammar given below: S \u2192 Aa. Compute the FOLLOW set of the non-terminal B and write the index values for the symbols in the"},"content":{"rendered":"\n<p>Q. Consider the grammar given below: <\/p>\n\n\n\n<p>S \u2192 Aa<\/p>\n\n\n\n<p>A \u2192 BD<\/p>\n\n\n\n<p>B \u2192 b | \u03f5 D \u2192 d | \u03f5<\/p>\n\n\n\n<p>Let a, b, d, and $ be indexed as follows:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>a<\/td><td>b<\/td><td>d<\/td><td>$<\/td><\/tr><tr><td>3<\/td><td>2<\/td><td>1<\/td><td>0<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>Compute the FOLLOW set of the non-terminal B and write the index values for the symbols in the FOLLOW set in the descending order. (For example, if the FOLLOW set is {a, b, d, $}, then the answer should be 3210)<\/p>\n\n\n\n<p>Solution:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"271\" height=\"320\" src=\"https:\/\/www.gkseries.com\/blog\/wp-content\/uploads\/2023\/08\/Screenshot-487.png\" alt=\"\" class=\"wp-image-154066\" srcset=\"https:\/\/www.gkseries.com\/blog\/wp-content\/uploads\/2023\/08\/Screenshot-487.png 271w, https:\/\/www.gkseries.com\/blog\/wp-content\/uploads\/2023\/08\/Screenshot-487-254x300.png 254w\" sizes=\"(max-width: 271px) 100vw, 271px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Q. Consider the grammar given below: S \u2192 Aa A \u2192 BD B \u2192 b | \u03f5 D \u2192 d | \u03f5 Let a, b, d, and $ be indexed as follows: a b d $ 3 2 1 0 Compute the FOLLOW set of the non-terminal B and write the index values for the [&hellip;]<\/p>\n","protected":false},"author":419,"featured_media":154070,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[5141],"tags":[5140],"class_list":["post-154056","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-gate","tag-gate-questions"],"_links":{"self":[{"href":"https:\/\/www.gkseries.com\/blog\/wp-json\/wp\/v2\/posts\/154056","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.gkseries.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gkseries.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gkseries.com\/blog\/wp-json\/wp\/v2\/users\/419"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gkseries.com\/blog\/wp-json\/wp\/v2\/comments?post=154056"}],"version-history":[{"count":1,"href":"https:\/\/www.gkseries.com\/blog\/wp-json\/wp\/v2\/posts\/154056\/revisions"}],"predecessor-version":[{"id":154071,"href":"https:\/\/www.gkseries.com\/blog\/wp-json\/wp\/v2\/posts\/154056\/revisions\/154071"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.gkseries.com\/blog\/wp-json\/wp\/v2\/media\/154070"}],"wp:attachment":[{"href":"https:\/\/www.gkseries.com\/blog\/wp-json\/wp\/v2\/media?parent=154056"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gkseries.com\/blog\/wp-json\/wp\/v2\/categories?post=154056"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gkseries.com\/blog\/wp-json\/wp\/v2\/tags?post=154056"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}