I am trying to prove that every finite language is context-free, is there any type of way that I could do it effectively?
Asked
Active
Viewed 3,360 times
3
-
1Just write a context-free grammar for it. – David Richerby Mar 07 '17 at 21:53
2 Answers
2
It's not hard to show that every finite language is regular. If you know that every regular language is also context-free, you're done.

Rick Decker
- 14,826
- 5
- 42
- 54
-3
Every finite language is Regular. ( Because we can construct a finite automata for it )
Every regular language is cf. ( Because regular language is subset of cf )
Hence proved.

Rimmi
- 1
-
3
-
Your answer is correct but it adds nothing new to the existing answer. Thanks for posting but we'd prefer it if you only posted where you have something new to add. Thanks! – David Richerby Apr 30 '17 at 19:46