Monotone Circuit can implement an algorithm to run Non-Deterministic Polynomial time complexity (NP) problem in Polynomial time complexity (P). I developed a method to implement all algorithms without "Not" operations. Using this information, I manage to prove that NP is not equal to P. Kung Fu Computer Science, Geometric complexity theory
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
ย
A Weird Soviet Method to Partially Solve the Perebor Problem
1. A Weird Soviet Method to
Partially Solve the Perebor
Problem
How is this method related to my NP vs P solution
Sing Kuang Tan
singkuangtan@gmail.com
17 August 2021
2. Perebor Problems
โข Perebor problems are difficult problems which current methods can
only solve it by brute force algorithm
โข https://drdoane.com/the-perebor-problem/
โข Perebor problems are the NP (Non-Deterministic Polynomial time
complexity) problem
โข Can we convert NP into P (Polynomial time complexity) problem?
โข My answer is NO.
โข My solution to NP vs P problem is NPโ P
Link to my paper
https://www.slideshare.net/SingKuangTan/brief-np-vspexplain-249524831
Prove Np not equal P using Markov Random Field and Boolean Algebra
Simplification
https://vixra.org/abs/2105.0181
3. Alexander Razborov (from Soviet Union)
โข He developed the method to partially solve Perebor Problem.
โข Bio: https://en.wikipedia.org/wiki/Alexander_Razborov
โข In 1985, Razborov has proved that Clique problem of a graph requires a Non-
Deterministic Polynomial time complexity (NP) algorithm if the algorithm is implemented
using Boolean algebra consist of only โAndโ and โOrโ operations
โข As there is no โNotโ operation, so it only partially proves that NPโ P
โข Later I will show how I circumvent the problem of no โNotโ operation
โข https://blog.computationalcomplexity.org/2005/09/circuit-complexity-and-p-versus-np.html
โข https://www.cs.utexas.edu/~danama/courses/adv-comp/scribe5.pdf
โข A. A. Razborov, Lower bounds on the monotone complexity of some Boolean functions, Dokl.
Akad. Nauk. SSSR, 281(4):798-801, 1985
โข At that time, Soviet is one of the country leading in the problem on NP vs P
โข Soviet Song โOur Armyโ LOL
โข https://www.youtube.com/watch?v=5yYQIa-4rLE
โข Enable subtitles ๏
4. Clique Problem
โข https://en.wikipedia.org/wiki/Clique_problem
4-clique in this 7 vertices graph can
be found using brute force
โOrโ operation
โAndโ operation
This digital circuit is used to detect whether a 3-clique exists
in this 4 vertices graph
This circuit has only โAndโ and โOrโ operations (In literature,
this is called a monotone circuit)
5. Cellular Automata
โข What is Cellular Automata?
โข https://mathworld.wolfram.com/CellularAutomaton.ht
ml
โข https://natureofcode.com/book/chapter-7-cellular-
automata/
โข https://towardsdatascience.com/simple-but-stunning-
animated-cellular-automata-in-python-c912e0c156a9
โข https://towardsdatascience.com/algorithmic-beauty-an-
introduction-to-cellular-automata-f53179b3cf8f
โข Animation
โข https://www.youtube.com/watch?v=3MJ8deSCOCE
6. โNotโ operations are unnecessary
โข I will show using โNotโ operations are unnecessary for
implementation of any algorithms using Boolean algebra
โข I will use Cellular Automata as an Universal Computing model
โข A Polynomial time (P) Cellular Automata can be implemented without any
โNotโ operation
First layer is
the input of an
algorithm
Last layer is the
output of an
algorithm
Cellular Automata
can implement any
algorithm
Different algorithm can be
implemented by changing the
rule
7. Cellular Automata can Emulate any Computer
Algorithm
An algorithm implemented
on a modern computer
Can also be implemented using
Cellular Automata
A Polynomial time complexity (P)
algorithm remains Polynomial time (P)
after implemented on Cellular
Automata
A Non-Deterministic Polynomial time
complexity (NP) algorithm remains
Non-Deterministic Polynomial time
(NP) after implemented on Cellular
Automata
9. Simple Cellular Automata Example
Each intermediate output is
dependent on input
Each output is dependent on
intermediate outputs
โข This looks like a convolutional
neural network
โข Neural Network can be
represented by multi-layer
Boolean algebra
โข Multi-layer Boolean algebra
simplification gives us insight on
how to train a neural network
10. Simply Cellular Automata Example
a1,1 a1,2 a1,3 a1,4 a1,5
a2,2 a2,3 a2,4
a3,3
I give a variable name to each
cell of the Cellular Automata
a1,1
Boolean
Algebra or
Circuit
๐3,3
a1,2
a1,3
a1,4
a1,5
11. Simply Cellular Automata Example
ai,j ai,j+1 Ai,j+2
ai+1,j+1
๐๐+1,๐+1 = ๐๐,๐ ๐๐,๐+1 ๐๐,๐+2 +
๐๐,๐๐๐,๐+1 ๐๐,๐+2+ ๐๐,๐ ๐๐,๐+1 ๐๐,๐+2 +
๐๐,๐ ๐๐,๐+1 ๐๐,๐+2
Bar above ai,j means โNotโ operation on ai,j
Addition means โOrโ operation
Multiplication means โAndโ operation
The rule can be implemented
using the Boolean algebra below
14. Simply Cellular Automata Example
a1,1 a1,2 a1,3 a1,4 a1,5
a2,2 a2,3 a2,4
a3,3
Find a3,3 in terms of a1,1, a1,2, a1,3, a1,4, a1,5 is
a3,3=a1,1,0a1,2,0a1,3,0a1,4,0a1,5,1
+ a1,1,0a1,2,0a1,3,0a1,4,1a1,5,0
+ a1,1,0a1,2,0a1,3,0a1,4,1a1,5,1
+ a1,1,0a1,2,1a1,3,1a1,4,0a1,5,1
+ a1,1,0a1,2,1a1,3,1a1,4,1a1,5,0
+ a1,1,0a1,2,1a1,3,1a1,4,1a1,5,1
+ a1,1,1a1,2,0a1,3,0a1,4,0a1,5,0
+ a1,1,1a1,2,0a1,3,1a1,4,0a1,5,0
+ a1,1,1a1,2,0a1,3,1a1,4,0a1,5,1
+ a1,1,1a1,2,0a1,3,1a1,4,1a1,5,0
+ a1,1,1a1,2,0a1,3,1a1,4,1a1,5,1
+ a1,1,1a1,2,1a1,3,0a1,4,0a1,5,0
+ a1,1,1a1,2,1a1,3,0a1,4,0a1,5,1
+ a1,1,1a1,2,1a1,3,0a1,4,1a1,5,0
+ a1,1,1a1,2,1a1,3,0a1,4,1a1,5,1
+ a1,1,1a1,2,1a1,3,1a1,4,0a1,5,0
Use the
representation below
to simplify the
equations,
๐๐,๐,0 = ๐๐,๐
๐๐,๐,1 = ๐๐,๐
15. Simply Cellular Automata Example
a1,1,0
Use the
representation below
to simplify the
equations,
๐๐,๐,0 = ๐๐,๐
๐๐,๐,1 = ๐๐,๐
a1,1,1 a1,2,0 a1,2,1 a1,3,0 a1,3,1 a1,4,0 a1,4,1 a1,5,0 a1,5,1
a2,2,0 a2,2,1 a2,3,0 a2,3,1 a2,4,0 a2,4,1
A3,3,0 A3,3,1
Represent the Cellular Automata by
Boolean algebra,
๐2,2,0 = ๐1,1,1๐1,2,1๐1,3,1 +
๐1,1,1๐1,2,1๐1,3,0+ ๐1,1,1๐1,2,0๐1,3,1
+ ๐1,1,0๐1,2,0๐1,3,0
๐2,2,1 = ๐1,1,1๐1,2,0๐1,3,0 +
๐1,1,0๐1,2,1๐1,3,1+ ๐1,1,0๐1,2,1๐1,3,0
+ ๐1,1,0๐1,2,0๐1,3,1
๐2,3,0 = ๐1,2,1๐1,3,1๐1,4,1 +
๐1,2,1๐1,3,1๐1,4,0+ ๐1,2,1๐1,3,0๐1,4,1
+ ๐1,2,0๐1,3,0๐1,4,0
๐2,3,1 = ๐1,2,1๐1,3,0๐1,4,0 +
๐1,2,0๐1,3,1๐1,4,1+ ๐1,2,0๐1,3,1๐1,4,0
+ ๐1,2,0๐1,3,0๐1,4,1
๐2,4,0 = ๐1,3,1๐1,4,1๐1,5,1 +
๐1,3,1๐1,4,1๐1,5,0+ ๐1,3,1๐1,4,0๐1,5,1
+ ๐1,3,0๐1,4,0๐1,5,0
๐2,4,1 = ๐1,3,1๐1,4,0๐1,5,0 +
๐1,3,0๐1,4,1๐1,5,1+ ๐1,3,0๐1,4,1๐1,5,0
+ ๐1,3,0๐1,4,0๐1,5,1
๐3,3,0 = ๐2,2,1๐2,3,1๐2,4,1 +
๐2,2,1๐2,3,1๐2,4,0+ ๐2,2,1๐2,3,0๐2,4,1
+ ๐2,2,0๐2,3,0๐2,4,0
๐3,3,1 = ๐2,2,1๐2,3,0๐2,4,0 +
๐2,2,0๐2,3,1๐2,4,1+ ๐2,2,0๐2,3,1๐2,4,0
+ ๐2,2,0๐2,3,0๐2,4,1
The use of double
variables remove the
need of โNotโ operation
in the Boolean algebra
16. Simply Cellular Automata Example
a1,1,0
Find a3,3,1 in terms of a1,1,0, a1,2,0, a1,3,0, a1,4,0, a1,5,0, a1,1,1,
a1,2,1, a1,3,1, a1,4,1, a1,5,1 is
a3,3,1=a1,1,0a1,2,0a1,3,0a1,4,0a1,5,1
+ a1,1,0a1,2,0a1,3,0a1,4,1a1,5,0
+ a1,1,0a1,2,0a1,3,0a1,4,1a1,5,1
+ a1,1,0a1,2,1a1,3,1a1,4,0a1,5,1
+ a1,1,0a1,2,1a1,3,1a1,4,1a1,5,0
+ a1,1,0a1,2,1a1,3,1a1,4,1a1,5,1
+ a1,1,1a1,2,0a1,3,0a1,4,0a1,5,0
+ a1,1,1a1,2,0a1,3,1a1,4,0a1,5,0
+ a1,1,1a1,2,0a1,3,1a1,4,0a1,5,1
+ a1,1,1a1,2,0a1,3,1a1,4,1a1,5,0
+ a1,1,1a1,2,0a1,3,1a1,4,1a1,5,1
+ a1,1,1a1,2,1a1,3,0a1,4,0a1,5,0
+ a1,1,1a1,2,1a1,3,0a1,4,0a1,5,1
+ a1,1,1a1,2,1a1,3,0a1,4,1a1,5,0
+ a1,1,1a1,2,1a1,3,0a1,4,1a1,5,1
+ a1,1,1a1,2,1a1,3,1a1,4,0a1,5,0
Use the
representation below
to simplify the
equations,
๐๐,๐,0 = ๐๐,๐
๐๐,๐,1 = ๐๐,๐
a1,1,1 a1,2,0 a1,2,1 a1,3,0 a1,3,1 a1,4,0 a1,4,1 a1,5,0 a1,5,1
a2,2,0 a2,2,1 a2,3,0 a2,3,1 a2,4,0 a2,4,1
A3,3,0 A3,3,1
The use of double
variables remove the
need of โNotโ operation
in the Boolean algebra
17. Other Models without โNotโ operation
โข Creating a Boolean algebra without โNotโ operation may seem weird
in the first place
โข But there is no โNotโ operation in
โข Fault tree analysis
โข AND OR graph (for solving e.g. TIC-TAC-TOE)
โข Bayesian network or Markov Random Field
18. Expansion of the Boolean Algebra
a3,3=a1,1,0a1,2,0a1,3,0a1,4,0a1,5,1
+ a1,1,0a1,2,0a1,3,0a1,4,1a1,5,0
+ a1,1,0a1,2,0a1,3,0a1,4,1a1,5,1
+ a1,1,0a1,2,1a1,3,1a1,4,0a1,5,1
+ a1,1,0a1,2,1a1,3,1a1,4,1a1,5,0
+ a1,1,0a1,2,1a1,3,1a1,4,1a1,5,1
+ a1,1,1a1,2,0a1,3,0a1,4,0a1,5,0
+ a1,1,1a1,2,0a1,3,1a1,4,0a1,5,0
+ a1,1,1a1,2,0a1,3,1a1,4,0a1,5,1
+ a1,1,1a1,2,0a1,3,1a1,4,1a1,5,0
+ a1,1,1a1,2,0a1,3,1a1,4,1a1,5,1
+ a1,1,1a1,2,1a1,3,0a1,4,0a1,5,0
+ a1,1,1a1,2,1a1,3,0a1,4,0a1,5,1
+ a1,1,1a1,2,1a1,3,0a1,4,1a1,5,0
+ a1,1,1a1,2,1a1,3,0a1,4,1a1,5,1
+ a1,1,1a1,2,1a1,3,1a1,4,0a1,5,0
Polynomial Time Complexity Boolean algebra
Non-Deterministic Polynomial Time
Complexity Boolean algebra
The Boolean algebra can
be expanded
๐2,2,0 = ๐1,1,1๐1,2,1๐1,3,1 + ๐1,1,1๐1,2,1๐1,3,0+
๐1,1,1๐1,2,0๐1,3,1 +๐1,1,0๐1,2,0๐1,3,0
๐2,2,1 = ๐1,1,1๐1,2,0๐1,3,0 + ๐1,1,0๐1,2,1๐1,3,1+
๐1,1,0๐1,2,1๐1,3,0 +๐1,1,0๐1,2,0๐1,3,1
๐2,3,0 = ๐1,2,1๐1,3,1๐1,4,1 + ๐1,2,1๐1,3,1๐1,4,0+
๐1,2,1๐1,3,0๐1,4,1 +๐1,2,0๐1,3,0๐1,4,0
๐2,3,1 = ๐1,2,1๐1,3,0๐1,4,0 + ๐1,2,0๐1,3,1๐1,4,1+
๐1,2,0๐1,3,1๐1,4,0 +๐1,2,0๐1,3,0๐1,4,1
๐2,4,0 = ๐1,3,1๐1,4,1๐1,5,1 + ๐1,3,1๐1,4,1๐1,5,0+
๐1,3,1๐1,4,0๐1,5,1 +๐1,3,0๐1,4,0๐1,5,0
๐2,4,1 = ๐1,3,1๐1,4,0๐1,5,0 + ๐1,3,0๐1,4,1๐1,5,1+
๐1,3,0๐1,4,1๐1,5,0 +๐1,3,0๐1,4,0๐1,5,1
๐3,3,0 = ๐2,2,1๐2,3,1๐2,4,1 + ๐2,2,1๐2,3,1๐2,4,0+
๐2,2,1๐2,3,0๐2,4,1 +๐2,2,0๐2,3,0๐2,4,0
๐3,3,1 = ๐2,2,1๐2,3,0๐2,4,0 + ๐2,2,0๐2,3,1๐2,4,1+
๐2,2,0๐2,3,1๐2,4,0 +๐2,2,0๐2,3,0๐2,4,1
โข Note that all Boolean
algebras do not have
โNotโ operation
โข Expansion is simply
multiply throughout
19. Factorization of the Boolean Algebra
a3,3
=a1,1,0a1,2,0a1,3,0a1,4,0a1,5,1+a1,1,0a1,2,0a1,3,0a1,4,1a1,5,0+
a1,1,0a1,2,0a1,3,0a1,4,1a1,5,1+ a1,1,0a1,2,1a1,3,1a1,4,0a1,5,1+
a1,1,0a1,2,1a1,3,1a1,4,1a1,5,0+ a1,1,0a1,2,1a1,3,1a1,4,1a1,5,1+
a1,1,1a1,2,0a1,3,0a1,4,0a1,5,0+ a1,1,1a1,2,0a1,3,1a1,4,0a1,5,0+
a1,1,1a1,2,0a1,3,1a1,4,0a1,5,1+ a1,1,1a1,2,0a1,3,1a1,4,1a1,5,0+
a1,1,1a1,2,0a1,3,1a1,4,1a1,5,1+ a1,1,1a1,2,1a1,3,0a1,4,0a1,5,0+
a1,1,1a1,2,1a1,3,0a1,4,0a1,5,1+ a1,1,1a1,2,1a1,3,0a1,4,1a1,5,0+
a1,1,1a1,2,1a1,3,0a1,4,1a1,5,1+ a1,1,1a1,2,1a1,3,1a1,4,0a1,5,0
Polynomial Time Complexity Boolean algebra
Non-Deterministic Polynomial Time
Complexity Boolean algebra
The Boolean algebra can
be factorized into multi-
layer Boolean algebra that
is more efficient if a more
efficient Boolean algebra
exists
Naรฏve problem definition that solves a
problem using brute force
๐2,2,0 = ๐1,1,1๐1,2,1๐1,3,1 + ๐1,1,1๐1,2,1๐1,3,0+
๐1,1,1๐1,2,0๐1,3,1 +๐1,1,0๐1,2,0๐1,3,0
๐2,2,1 = ๐1,1,1๐1,2,0๐1,3,0 + ๐1,1,0๐1,2,1๐1,3,1+
๐1,1,0๐1,2,1๐1,3,0 +๐1,1,0๐1,2,0๐1,3,1
๐2,3,0 = ๐1,2,1๐1,3,1๐1,4,1 + ๐1,2,1๐1,3,1๐1,4,0+
๐1,2,1๐1,3,0๐1,4,1 +๐1,2,0๐1,3,0๐1,4,0
๐2,3,1 = ๐1,2,1๐1,3,0๐1,4,0 + ๐1,2,0๐1,3,1๐1,4,1+
๐1,2,0๐1,3,1๐1,4,0 +๐1,2,0๐1,3,0๐1,4,1
๐2,4,0 = ๐1,3,1๐1,4,1๐1,5,1 + ๐1,3,1๐1,4,1๐1,5,0+
๐1,3,1๐1,4,0๐1,5,1 +๐1,3,0๐1,4,0๐1,5,0
๐2,4,1 = ๐1,3,1๐1,4,0๐1,5,0 + ๐1,3,0๐1,4,1๐1,5,1+
๐1,3,0๐1,4,1๐1,5,0 +๐1,3,0๐1,4,0๐1,5,1
๐3,3,0 = ๐2,2,1๐2,3,1๐2,4,1 + ๐2,2,1๐2,3,1๐2,4,0+
๐2,2,1๐2,3,0๐2,4,1 +๐2,2,0๐2,3,0๐2,4,0
๐3,3,1 = ๐2,2,1๐2,3,0๐2,4,0 + ๐2,2,0๐2,3,1๐2,4,1+
๐2,2,0๐2,3,1๐2,4,0 +๐2,2,0๐2,3,0๐2,4,1
โข Simplification is simply
factoring as there is no
โNotโ operation
โข We can find optimal time
efficient Boolean algebra
by factoring
20. Example of an Non-Deterministic problem (NP)
expressed in Markov Random Field representation
a1 a2
a3
a4
๐ ๐1, ๐2, ๐3, ๐4 =
๐1,๐2,๐3,๐4
โ(๐1, ๐2)โ(๐1, ๐3)โ(๐1, ๐4)โ(๐2, ๐3)โ(๐2, ๐4)โ(๐3, ๐4)
Example of an NP problem expressed as a Graphical model (or
Markov Random Field)
Each variable ai can take finite values, e.g. ๐๐ โ {0,1,2,3}
โ ๐๐, ๐๐ = 0 ๐๐ 1
If the NP problem has a solution, ๐ ๐1, ๐2, ๐3, ๐4 >0
Addition is โOrโ operation
Multiplication is โAndโ Operation
21. Boolean Algebra of NP Problem
โข Boolean algebra
โข ๐ ๐1, ๐2, ๐3, ๐4 =
๐1,๐2,๐3,๐4
โ(๐1, ๐2)โ(๐1, ๐3)โ(๐1, ๐4)โ(๐2, ๐3)โ(๐2, ๐4)โ(๐3, ๐4)
โข Each h term, h(ai,aj), is a Boolean input variable taking an input
0 or 1
โข Addition is โOrโ operation
โข Multiplication is โAndโ operation
โข We can try to simplify this Boolean algebra by factorization
h(a1=0,a2=0)
h(a1=1,a2=0)
h(a1=0,a2=1)
h(a1=0,a2=2)
โฆ
h(a1=0,a3=0)
h(a1=1,a3=0)
h(a1=0,a3=1)
h(a1=0,a3=2)
โฆ
h(a3=0,a4=0)
h(a3=1,a4=0)
h(a3=0,a4=1)
h(a3=0,a4=2)
โฆ
Boolean
Algebra or
Circuit
โฎ
โฎ
22. โNotโ Operations on h() Terms can be
Replaced
โข Do not have to consider โ(๐๐ = ๐ฃ๐, ๐๐ = ๐ฃ๐) because โNotโ operation on
input can be replaced by
โข ๐ฃ๐,๐ฃ๐ (๐ฃ๐,๐ฃ๐) โ(๐๐ = ๐ฃ๐, ๐๐ = ๐ฃ๐)
โข which means sum of all h(ai,aj) terms not including h(ai=vi,aj=vj)
โข After replacing the โ(๐๐ = ๐ฃ๐, ๐๐ = ๐ฃ๐) term, the Boolean algebra remains
Polynomial Time complexity if it is originally Polynomial time
โข Because it is replaced by at most 4*4-1=15 terms, where n=4 is the number of variables
โข Assume that the number of values a variable can take is 4
โข E.g. โ(๐๐ = 0, ๐๐ = 0) can be replaced by h(ai=0,aj=1)+h(ai=0,aj=2)
+h(ai=0,aj=3)+h(ai=1,aj=0)+h(ai=1,aj=1)+h(ai=1,aj=2)
+h(ai=1,aj=3)+h(ai=2,aj=0)+h(ai=2,aj=1)+h(ai=2,aj=2)+h(ai=2,aj=3)+h(ai=3,aj=0)
+h(ai=3,aj=1)+h(ai=3,aj=2)+h(ai=3,aj=3)
23. NP problem cannot be simplified into P
๐ ๐1, ๐2, ๐3, ๐4 =
๐1,๐2,๐3,๐4
โ(๐1, ๐2)โ(๐1, ๐3)โ(๐1, ๐4)โ(๐2, ๐3)โ(๐2, ๐4)โ(๐3, ๐4)
๐ ๐1, ๐2, ๐3, ๐4 =
๐1,๐2
โ(๐1, ๐2)
๐3
โ(๐1, ๐3)โ(๐2, ๐3)
๐4
โ(๐1, ๐4) โ(๐2, ๐4)โ(๐3, ๐4)
One possible factorization is shown below. There are many possible different factorizations
An NP (Non-Deterministic Polynomial) problem cannot be simplified into Polynomial time by
factorization
Because of these 3 terms, it takes NP time to evaluate
a1 a2
a3
a4
Actual proof is much more complex than this
For details, please read my paper (end of slides)
24. About Me
โข My job uses Machine Learning to solve problems
โข Like my posts or slides in LinkedIn, Twitter or Slideshare
โข Follow me on LinkedIn
โข https://www.linkedin.com/in/sing-kuang-tan-b189279/
โข Follow me on Twitter
โข https://twitter.com/Tan_Sing_Kuang
โข Look at my Slideshare slides
โข https://www.slideshare.net/SingKuangTan
โข 8 trends in Hang Seng Index
โข 4 types of Mathematical Proofs
โข How I prove NP vs P
โข Follow me on Slideshare
25. Share my links
โข I am a Small Person with Big Dreams
โข Please help me to repost my links to other platforms so that I can spread my ideas to the rest of
the world
โข ๆไบบๅฐ๏ผไฝๅ ๆขฆๆณ่ไผๅคงใ
โข ่ฏทๅธฎๆ็ๆไปถ้พๆฅไผ ๅๅฐๅ ถไปๅนณๅฐ๏ผ่ฎฉๆ็ๆๆณ่ฝไผ ้ๅคฉไธใ
โข Comments? Send to singkuangtan@gmail.com
โข Link to my paper NP vs P paper
โข https://www.slideshare.net/SingKuangTan/brief-np-vspexplain-249524831
โข Prove Np not equal P using Markov Random Field and Boolean Algebra Simplification
โข https://vixra.org/abs/2105.0181
โข Other link
โข https://www.slideshare.net/SingKuangTan