Hasse diagram for complexity classes. You are given the following complexity classes : REC (recursive) ,RE(recursively enumerable) , P , NP , NPSPACE , PSPACE ,REG(regular) , CF(Context Free). Draw them in a hasse diagram with short explanation.

profesorluissp

profesorluissp

Answered question

2022-09-04

Hasse diagram for complexity classes
You are given the following complexity classes : REC (recursive) ,RE(recursively enumerable) , P , NP , NPSPACE , PSPACE ,REG(regular) , CF(Context Free). Draw them in a hasse diagram with short explanation.
I tried ranking the classes Reg < CF < P <NP < PSPACE=NPSPACE < REC < R.E. but I don't know how to make the hasse diagram.

Answer & Explanation

Ashlynn Cox

Ashlynn Cox

Beginner2022-09-05Added 12 answers

Step 1
Computational complexity classes are basically sets of problems. Some of them are included in others. For example, it is quite obvious that P N P and likewise P c o N P .
It is easy to see that set inclusion induces a partial order (it is reflexive, transitive and anti-symmetric). Hasse-diagrams are a way of representing partial orders.
In general, a Hasse-diagram is defined as a graph G = ( V , E ). The vertices are the given sets (the complexity classes in this case) and the edges define the corresponding partial orders (the set inclusion in this case).
Step 2
Given two sets A,B such that A B, then there is a directed edge from A to B in the Hasse diagram.
Now, for our case we have complexity classes. Some of them are included in others, e.g. P N P as stated above, hence there would be a directed edge from P to NP in the Hasse-diagram. We do the same for all given complexity classes.

Do you have a similar question?

Recalculate according to your conditions!

New Questions in Discrete math

Ask your question.
Get an expert answer.

Let our experts help you. Answer in as fast as 15 minutes.

Didn't find what you were looking for?