-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
136 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
{"dg-publish":true,"permalink":"/math/np/","noteIcon":"","created":"2024-07-25T19:02:37.952+08:00","updated":"2024-07-25T19:05:29.303+08:00"} | ||
--- | ||
|
||
#TCS | ||
**NP** is the class of decision problems for which there is a polynomial time algorithm that can **verify** "yes" instances given the appropriate certificate. | ||
|
||
**CoNP** is the class of decision problems for which there is a polynomial time algorithm that can **verify** "no" instances given the appropriate certificate. | ||
|
||
We don’t know whether coNP is different from NP. | ||
|
||
There is a problem in NP for every problem in coNP, and vice versa. For example, the SAT problem asks "does there exist a boolean assignment which makes this formula evaluate to True?". The complement problem, which is in coNP, asks, "do all boolean assignments make this formula evaluate to False?" | ||
|
||
A language 𝐿 is _NP-hard_ if for every language 𝑅 in NP there exists a function 𝑓 computable in polynomial time such that for all 𝑥, 𝑥∈𝑅 iff 𝑓(𝑥)∈𝐿. | ||
|
||
If a language is both NP-hard and coNP-hard then its exact complexity lies above both NP and coNP. Indeed, it is conjectured that NP≠coNP, and this implies that a problem which is both NP-hard and coNP-hard belongs to neither NP nor coNP. | ||
|
||
Problems which are both NP-hard and coNP-hard do exist. For example, any PSPACE-complete problem is both NP-hard and coNP-hard. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
{"dg-publish":true,"permalink":"/parallel/work-stealing-queue/","noteIcon":"","created":"2024-07-26T21:11:58.778+08:00","updated":"2024-07-26T21:12:46.233+08:00"} | ||
--- | ||
|
||
#Parallel | ||
|
||
- [What are the benefits of a work stealing scheduler? ](https://users.rust-lang.org/t/what-are-the-benefits-of-a-work-stealing-scheduler/24988) |