Decidable language closed under complement

723 Views Asked by At

Why are decidable languages closed under complement?

So if L is decidable why is the complement of L also decidable.

1

There are 1 best solutions below

0
On

(To get this off the unanswered list, I’m converting my comment to an answer.)

If you have a decision mechanism that always correctly returns yes or no to the question

$\hspace{5cm}$Is $w$ in $L\,$?,

interchanging the outputs — i.e., turning yes to no and no to yes — gives you a decision mechanism for the complement of $L$.