<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Dhyanesh Parekh on Medium]]></title>
        <description><![CDATA[Stories by Dhyanesh Parekh on Medium]]></description>
        <link>https://medium.com/@dhyaneshparekh222ddp?source=rss-27c691aa04cc------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*1PlOlVsmI3osroYyeajAdw.jpeg</url>
            <title>Stories by Dhyanesh Parekh on Medium</title>
            <link>https://medium.com/@dhyaneshparekh222ddp?source=rss-27c691aa04cc------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 11:19:13 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dhyaneshparekh222ddp/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[What makes P vs. NP problem “MILLENNIUM!” ?]]></title>
            <link>https://medium.com/@dhyaneshparekh222ddp/what-makes-p-vs-np-problem-millennium-6cd81b173fd?source=rss-27c691aa04cc------2</link>
            <guid isPermaLink="false">https://medium.com/p/6cd81b173fd</guid>
            <category><![CDATA[complexity-class]]></category>
            <category><![CDATA[algorithms]]></category>
            <dc:creator><![CDATA[Dhyanesh Parekh]]></dc:creator>
            <pubDate>Tue, 10 Sep 2019 14:43:14 GMT</pubDate>
            <atom:updated>2023-09-04T18:43:16.643Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/984/1*0V6-WIcgNzExPr481S-9xg.jpeg" /><figcaption>One of the most important MILLENNIUM problem for Computer science of all time!</figcaption></figure><h3>What makes P vs. NP problem “MILLENNIUM!” ?</h3><p><strong>Millennium</strong> problems! what does that mean?well In 2000, the Clay Mathematics Institute of Cambridge, Massachusetts laid out seven of the most challenging problems mathematicians were grappling with at the time and offered a cool $1 million reward to anyone who could solve one. These problems represent the deepest mysteries in the field of mathematics.</p><p><strong>MILLENNIUM PROBLEMS</strong></p><ol><li><a href="https://www.claymath.org/millennium/riemann-hypothesis/"><strong>Riemann Hypothesis</strong></a></li><li><a href="https://www.claymath.org/millennium/yang-mills-the-maths-gap/"><strong>Yang–Mills and Mass Gap</strong></a></li><li><a href="https://www.claymath.org/millennium/navier-stokes-equation/"><strong>Navier–Stokes Equation</strong></a></li><li><a href="https://www.claymath.org/millennium/hodge-conjecture/"><strong>Hodge Conjecture</strong></a></li><li><a href="https://www.claymath.org/millennium/poincare-conjecture/"><strong>Poincaré Conjecture</strong></a></li><li><a href="https://www.claymath.org/millennium/birch-and-swinnerton-dyer-conjecture/"><strong>Birch and Swinnerton-Dyer Conjecture</strong></a></li></ol><p>And ofcourse <a href="https://www.claymath.org/millennium/p-vs-np/"><strong>P vs. NP problem</strong></a><strong>. </strong>unlike other problems P vs. NP problem is very easy to understand while the above mentioned 6 questions requires the profound knowledge in specified field to even understand that question. Actually understanding P vs. NP problem, is NP problem...</p><p>Okay ;) but let first talk about what <strong>P vs. NP</strong> problem is? <strong><em>The P vs. NP problem asks whether every problem whose solution can be quickly verified by a computer can also be quickly solved by a computer? </em></strong>But wait where is P and NP? Important than that what is P and NP? So Now let’s figure out what we mean by P and NP.</p><p>P stands for polynomial and the NP stands for non-deterministic polynomial time. In simpler terms, P stands for problems that are easy for computers to solve, and NP stands for problems that are not easy for computers to solve but are easy for them to check. example is finding prime numbers, It is easy to check if a number is prime or not, but it is very difficult to find those numbers in the first place. For some interesting practical questions of this kind, we lack any way to find an answer quickly, but if we are provided an answer, it is possible to check that and verify the answer quickly. In this way, NP problems may be thought of as being like riddles: it may be hard to come up with the answer to a riddle, but once one hears the answer, the answer seems obvious. In this comparison (analogy), the basic question is: are riddles really as hard as we think they are, or are we missing something?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*__GsyVBTnh7RbSTtkogglQ.jpeg" /></figure><p>These are the Complexity classes in which our day-to-day problems are lying.</p><p>Digging a little deeper, we see that all P problems are NP problems: it is easy to check that a solution is correct by solving the problem and comparing the two solutions. However, people want to know about the opposite: Are there any NP problems other than P problems, or all NP problems are just P problems? If NP problems are really not the same as P problems (P ≠ NP), it would mean that no general and fast ways to solve those NP problems can exist, no matter how hard we look. However, if all NP problems are P problems (P = NP), it would mean that new and very fast problem-solving methods do exist. We just have not found them yet. Since the best efforts of scientists and mathematicians have not found general and easy methods for solving NP problems yet, many people believe that there are NP problems other than P problems (that is, that P ≠ NP is true). Most mathematicians also believe this to be true, but currently no one has proven it by rigorous mathematical analysis. If it can be proven that NP and P are the same (P = NP is true), it would have a huge impact on many aspects of day-to-day life. For this reason, the question of <em>P versus NP</em> is an important and widely studied topic.</p><p>Firstly this question raised In 1956 when <a href="https://simple.wikipedia.org/wiki/Kurt_G%C3%B6del">Kurt Gödel</a> wrote a letter to <a href="https://simple.wikipedia.org/wiki/John_von_Neumann">John von Neumann</a>. In this letter, Gödel asked whether a certain NP complete problem could be solved in quadratic or linear time. In 1971, <a href="https://simple.wikipedia.org/w/index.php?title=Stephen_Cook&amp;action=edit&amp;redlink=1">Stephen Cook</a> introduced the precise statement of the P versus NP problem in his article “The complexity of theorem proving procedures”.</p><h3>Why it matters?</h3><p>There are many important NP problems that people don’t know how to solve in a way that is faster than testing every possible answer. Here are some examples:</p><ul><li>A <a href="https://simple.wikipedia.org/wiki/Travelling_Salesman_Problem">travelling salesman</a> wants to visit 100 cities by driving, starting and ending his trip at home. He has a limited supply of gasoline, so he can only drive a total of 10,000 kilometers. He wants to know if he can visit all of the cities without running out of gasoline.</li><li>A school offers 100 different classes, and a teacher needs to choose one hour for each class’ final exam. To prevent cheating, all of the students who take a class must take the exam for that class at the same time. If a student takes more than one class, then all of those exams must be at a different time. The teacher wants to know if he can schedule all of the exams in the same day so that every student is able to take the exam for each of their classes.</li><li>A farmer wants to take 100 watermelons of different masses to the market. She needs to pack the watermelons into boxes. Each box can only hold 20 kilograms without breaking. The farmer needs to know if 10 boxes will be enough for her to carry all 100 watermelons to market. (This is trivial, if no more than one watermelon weighs more than 2 kg then any 10 can be placed in each of the crates, if no more than ten watermelons weighs more than 2 kg then one of each of them can be placed in each crate, etc., to a fast solution; observation will be the key to any rapid solution such as this or the number set problem).</li><li>A large art gallery has many rooms, and each wall is covered with many expensive paintings. The owner of the gallery wants to buy cameras to watch these paintings, in case a thief tries to steal any of them. He wants to know if 100 cameras will be enough for him to make sure that each painting can be seen by at least one camera.</li><li><a href="https://en.wikipedia.org/wiki/Clique_problem">clique problem</a>: finding cliques (subsets of vertices, all adjacent to each other, also called complete subgraphs) in a graph.</li><li>The principal of a school has a list of which students are friends with each other. She wants to find a group of 10% of the students that are all friends with each other.</li><li>other than all of these it has lot’s of biological implecations, like for cancer treatment we need to determine the easy way to solve <a href="https://en.wikipedia.org/wiki/Protein_folding">Protein Folding</a> problem which is NP type problem.</li></ul><h3>What are the key steps to solving P vs. NP problem</h3><p>There are two ways by which we can try to solve P vs. NP problem.</p><ol><li>By finding the Co-relation between the several NP problems since all NP problems are fundamentally same, And the key to achieve this is <strong><em>NP Complete</em></strong> problems. Mathematicians can show that there are some NP problems that are <strong>NP-Complete</strong>. An NP-Complete problem is at least as difficult to solve as any other NP problem. This means that if someone found a method to solve any NP-Complete problem quickly, they could use that same method to solve every NP problem quickly. All of the problems listed above are NP-Complete, so if the salesman found a way to plan his trip quickly, he could tell the teacher, and she could use that same method to schedule the exams. The farmer could use the same method to determine how many boxes she needs, and the woman could use the same method to find a way to build her towers. Because a method that quickly solves one of these problems can solve them all, there are many people who want to find one. However, because there are so many different NP-Complete problems and nobody so far has found a way to solve even one of them quickly, most experts believe that solving NP-Complete problems quickly is not possible.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8bsa1UegzKXmk10K0yJ0vQ.png" /><figcaption>SAT( Satisfiability ) is NP Complete problem which is the most hard problem to solve and all other NP problems has the co-relation with that.</figcaption></figure><p>2. Another way to solve P vs. NP problem is to develop fundamentally fast computers which can do enormous computations in polynomial time. Like Quantum computers, they can do huge computations in very less time due to their intrinsic properties like Superposition, Interference, entanglement etc… . so there by we can solve all the NP problems in polynomial time. But still there are some NP problems left which has Space as major issue rather than time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j2bstnFPOSlcxl3nJ3Q41g.jpeg" /><figcaption><strong>BQP</strong>, in computational complexity theory, stands for “Bounded error, Quantum, Polynomial time”. It denotes the class of problems solvable by a quantum computer in polynomial time, with an error probability of at most 1/4 for all instances.</figcaption></figure><h3><strong>Disadvantages of NP=P</strong></h3><p>So far we have discussed that NP vs. P problem has lots of implecations, but it has some major impacts too.</p><p>like today every person relies on internet and so far the trust issue of internet that we can able to solve is due to NP ≠ P, the solution to that is Encryption which is based on the NP problem. All the online marketing companies and cryptocurrency relies on this fundamental inequality that we have that NP ≠ P, so if some one come with the profound solution to this inequality will cause the major impact to our communication medium and all other security aspects. I’ve discussed the solution to prime factorization which is NP problem in my another article you can check out that by clicking below given link.</p><p><a href="https://medium.com/@dhyaneshparekh222ddp/is-encryption-secure-or-just-need-to-have-perfect-guess-7cc1c61df617"><strong>Is Encryption secure? Or just need to have a perfect guess!</strong></a></p><p>so in last i just want to say that NP vs. P problem is one of the fundamental problem for mankind and solution to this problem has many cause to our day-to-day life, a solution to this problem also has many implication too. Complexity Researcher Scott Aaronson at M.I.T. says that -</p><p>“ <strong><em>If NP=P, then the world would be profoundly different place than we usually assumes it to be. There would no longer special values in ‘Creative leap’, no fundamental gap between solving problems and recognizing the solution once it’s found. Everyone who could appreciate a symphony would be Mozart; Everyone who can follow a step-by-step arguments would be Gauss.</em> </strong>”</p><p>Hope you have enjoyed the article, And always thanks for reading!:)</p><h3>References</h3><ol><li><a href="https://simple.wikipedia.org/wiki/P_versus_NP">P vs. NP problem/wikipedia</a></li><li><a href="https://www.youtube.com/watch?v=YX40hbAHx3s&amp;t=56s">P vs. NP and the Computational Complexity zoo/@hackerdashrey</a></li><li><a href="https://www.youtube.com/watch?v=OY41QYPI8cw&amp;t=189s">P vs. NP - An Introduction/@undefiend_behaviour</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6cd81b173fd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Is Encryption secure? Or just need to have a perfect guess !]]></title>
            <link>https://medium.com/@dhyaneshparekh222ddp/is-encryption-secure-or-just-need-to-have-perfect-guess-7cc1c61df617?source=rss-27c691aa04cc------2</link>
            <guid isPermaLink="false">https://medium.com/p/7cc1c61df617</guid>
            <dc:creator><![CDATA[Dhyanesh Parekh]]></dc:creator>
            <pubDate>Fri, 23 Aug 2019 12:02:08 GMT</pubDate>
            <atom:updated>2023-11-28T08:12:48.718Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZID8aHwBG87RtD0fElNISA.jpeg" /></figure><p>In Today’s scenario data security is one of the key aspect for every one. And not anyone here is unaware of how it is being achieved at digital level to secure data.</p><p>When the data security is concerned the first method is come into mind is “Encryption-Decryption”.<strong>The most popular Encryption method in recent scene is RSA(Rivest–Shamir–Adleman) which is mainly concerned with factorization of very big non-prime number, and the key idea of it is to wrap/scrumble the data with the factors of that non-prime number and make the key available to recipient so he/she can efficiently decrypt it.</strong></p><p>Here we are manily focused on how the Encryption is being penetrated so we yet to discuss about RSA in more deep, but you can check out that by link given below.</p><blockquote><a href="https://simple.m.wikipedia.org/wiki/RSA_algorithm#targetText=RSA%20(Rivest%E2%80%93Shamir%E2%80%93Adleman,can%20be%20given%20to%20anyone."><strong>R.S.A. Algorithm for Encryption</strong></a></blockquote><p>Now our main goal is to find the way that how to penetrate encryption. sounds like more hacker type stuff but it’s not that easy because the numbers used to encrypt data is enormously huge and unlike multiplication which intern faster than factorization , factorization of such huge number is very much difficult for even some super computers too.just for an example…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*pLJ7P_GJoBGWo-VLy6QjmQ.jpeg" /></figure><p>To find the factors of this number on computer it nearly takes 2000 years. And here we are concerned with co-prime(Relatively prime) factors of this number because not every factors are used for the encryption.In recent scene our best method is to guess the random number which can be factor of it, if it isn’t then try again and again and again…..</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vkJSgKjcuNmdcOF_wL4I_Q.jpeg" /></figure><p>But encrypting the data doesn’t mean to have unbreakable security it’s just to make the data harder to access ,but with non-Quantum computers it takes non polynomial time to find factors.And it’s still thrieves us from thinking whether the ‘NP’(Non determinastic Polynomial time problem) is ‘P’ (Polynomial time problem)or not. You can get more into this problem by reading my article on NP vs. P problem by clicking on the link given below.</p><p><a href="https://link.medium.com/PY6m7ji5RZ"><strong>What makes NP vs. P problem “MILLENNIUM!”</strong></a></p><p>Encryption is like to lock your house doesn’t mean to make it theaftproof but make it harder to be theaft.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*63E1btqzLX8IJj1fRLymVw.jpeg" /></figure><p>The key idea behind the penetration of encryption is to make good guess of co-prime factors that can intern into find the data which is encrypted. So here <strong>Shor’s algorithm </strong>come into picture.</p><h4><strong>Shor’s Algorithm</strong></h4><p>As we know to find co-prime factors of huge non-prime number takes non polynomial time but it’s not the case for Quantum computers. Quantum computers can easily penetrate through encryption due to their intrinsic properties like <strong>Superposition</strong> and<strong> Interference. </strong><em>Peter Shor</em><strong><em> </em></strong>took the advantage of this properties and made an efficient algorithm that turn your creepy random guess into better guess for factors.</p><p>There is no intrinsically Quantum mechanical about this algorithm you can infact run the version of this algorithm in your computer but perhaps as part of the process it takes enormous time to convert your guess into better one but on the other hand this key step happens to be ridiculously fast on Quantum computer.</p><p>So our task is to know how Shor’s algorithm turns our creepy guess into better guess which is more over mathematical stuff and how Quantum computers do it fast where the physics come into picture.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CgpXLMGeuyDWzSmk-GjOCw.jpeg" /></figure><p><strong>Shor&#39;s algorithm consists of two parts</strong>:</p><ol><li><em>A reduction, which can be done on a classical computer, of the factoring problem to the problem of </em><a href="https://en.m.wikipedia.org/wiki/Order_(group_theory)"><em>order</em></a><em>-finding.</em></li><li><em>A quantum algorithm to solve the order-finding problem.</em></li></ol><p>It all starts with the interger <strong>N</strong> which we want to factorize into it’s factors so the best way to guess some integer <strong>(1&lt;g&lt;N) </strong>such that it’s factor of it but it’s not compulsory to guess <strong>g</strong> which is pure factor of <strong>N</strong> but instead you can guess the integer which shares factor with <strong>N (gcd(g,N)), </strong>thanks<strong> </strong>to Euclide who has found the algorithm to find share factor.</p><p>So unlikely the random guess, just make guess of an integer which has share factors with <strong>N, </strong>but for very large numbers it’s difficult to guess that number which has shared factors so now shor made very clever move by using mathematical fact that if two numbers does’nt share factors than, some <strong>p</strong> times multiple of one number with itself will be some multiple of other number + 1.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9qG_pTKiLvxi-MTYoDLFfA.jpeg" /></figure><p>So it’s not worry to guess a pure factor or a number which shares factor with <strong>N </strong>we could guess any number and make better guess from it by finding some multiple of it to have some multiple of <strong>N</strong> + 1 as shown in figure.so cleverly we have found the <strong>N</strong> or multiple of <strong>N</strong> is something into something form which interns mean to have factors of <strong>N </strong>ofcourse since we are dealing with multiple of <strong>N</strong> it indeed means that the factors we got also multiple of factors rather than factors itself but that’s not problem as we can find share factors using Euclide’s algorithm.so we are done but wait is this the shor’s algorithm then why don’t we use it? Where is the Quantum mechanics?</p><p>Well indeed this algorithm has three problems with it.</p><ul><li><em>If one the factor among </em><strong><em>(g^(p/2)±1)</em></strong><em> is multiple of </em><strong><em>N</em></strong><em> then other one is multiple of </em><strong><em>m</em></strong><em> then it never turns out to be use full for us.</em></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/892/1*hCvn13VlQPkHzB-Dl8ZvyQ.jpeg" /></figure><ul><li><em>If the order </em><strong><em>P</em></strong><em> is odd number then both factors gives us fractional numbers and we don’t get the actual factors of </em><strong><em>N</em></strong><em>. But hopefully there is at least </em><strong><em>37.5%</em></strong><em> chance on any initial guess that </em><strong><em>P</em></strong><em> leads to factors of </em><strong><em>N</em></strong><em> so it’s worth repeating that less than </em><strong><em>10</em></strong><em> chance we can reach to factors of </em><strong><em>N</em></strong><em>.</em></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yTi8WVs4LcRoX3QZ6LOs3w.jpeg" /></figure><ul><li><em>Third problem is bigger one that</em></li></ul><h4><strong>How to find P?</strong></h4><p>Remember to convert creepy guess into good guess we need to find some <strong>p</strong> times the multiple of our initial guess,but how to find it because using conventional method it can take more time than to find direct factors of <strong>N</strong> so how to speed up this.Well here the Quantum computers come into picture.</p><p>Because unlike conventional computers Quantum computers can simultaneously calculate a bunch of numbers with using <strong>superpositioning phenomena, </strong>But you get only one output at the end of the procedure according to the probability.</p><p>So the key idea behind is to set all possible guess in a superposition such that after computation all the non <strong>P</strong> answers <strong>distructively interfere</strong> with each other and cancle out.</p><p>However to set up all possible superpositioning inputs to get answer with all other wrong answers get distructively interfer with each other is somewhat difficult task but that’s what the shor’s algorithm does in this case.</p><p>Shor’s algorithm takes the number <strong>x</strong> as input to the quantum computer and takes to the power of our guess <strong>g</strong>. And then it checks how much it’s bigger than multiple of <strong>N</strong> and tracks the record of both <strong>x</strong> and the <strong>reminder(r)</strong> we that we got by checking.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b0YjLf02sjRPRgzo0_D05A.jpeg" /></figure><p>So far it is not different from conventional computer but as it’s Quantum computer it can simultaneously takes all possible inputs and keep track of all inputs and their reminder with some multiple of <strong>N</strong> in form of superposition. Now as we know that direct measurement of superposition state lead us to have a single outcome which is not different then conventional one so here we have to take clever step by only measuring the superpositioned states that are greater than or less than some reminder <strong>r </strong>and by doing indirect measurements of this type we got advantage of superposition property and we just endup with having only those outcome which intern in range of specified reminder without disturbing superposition state.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ax4zCYL6gvT9MxeVX_QEjg.jpeg" /></figure><p>Actually measuring related terms(Indirect measurement) like the states which are in superposition that having some greater or lesser property(reminder) then specified reminder rather than measuring the direct required reminder is key step of shor’s algorithm or we can say it’s crucks of this algorithm. And as we have said earlier that this algorithm doesn’t have any intrinsic Quantum mechanics then how it’s the key step as it follows the Quantum rules, actually we have used Quantum principles as a tool to achieve very simple but most impactful mathematical observation shown as below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KIZFcolfAS7us66wM3K2Pg.jpeg" /></figure><p>As shown in figure <strong>P </strong>is resposible for turn our guess into some multiple of <strong>N</strong> + 1 and so far the mathematical observation is concerned we can easily say that if any other power to our guess holding reminder <strong>r </strong>then adding any multiple of <strong>P</strong> with that power and raised to our guess can still answers equal to some other multiple say <strong>m2</strong> of <strong>N</strong> and reminder <strong>r</strong> remains the same. This key step however helps us to set the possible guesses for order <strong>P</strong> to arrange in such way that they stays in superposition with remarkable way that all the wrong answers distructively interferes with each other.</p><p>Now the order <strong>P </strong>of our creepy guess has some kind of repeating property that we can say by observing the mathematical observation that we just discussed and this property you can’t identify by adding just one power to the <strong>P</strong> but it is the structural relation of adding or substracting one or more power to <strong>P </strong>and make sequence and their by you can observe this property.Infact in this case Quantum superpositioning helps us a lot as by just observing some amount greater or lesser than the specified reminder so as we left with only that amount of reminder with the superposition that is sequence of the states which has <strong>P </strong>as their period.</p><p>Now we are left with the states which are repeating with frequency of <strong>1/P.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*viys4eoApkMP48gwjEOdxg.jpeg" /></figure><p>Now we just have to find frequency of this superposition state and we know so far that the best tool to find the frequencies of things is <strong>Fourier transformation. </strong>Quantum mechanics also have this type of tool called <strong>Quantum Fourier Transform(QFT).</strong> Now as we are now only left with the states that has common frequency <strong>1/P</strong> , QFT operates on these states such way that all other repeating frequency (higher frequency)<strong> </strong>cancelled<strong> </strong>out and we are only left with the single harmonic frequency which happens to be <strong>1/P.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n8Hyz9xne07miNh9DqHjug.jpeg" /></figure><p>Now Question may arise that how QFT performs this magic like by only taking superposition states repeating with frequency <strong>1/P</strong> and canclled out all other repeating frequency without disturbing by measurement? Well idea behind this is far more simple unlike the normal fourier transform if we give any frequency to QFT it converts it into all of it’s superposition states but not any superposition instead all the states are weighted with different amounts that roughly look like sine wave, so as you give higher frequency as input it gives superposition of states that interns into sine wave with higher frequency.And as the idea of interference suggests, if we give more than one input frequencies than the resultant superpositioning sine waves interferers with each and cancle out some frequencies and only left with those frequencies which are constructively interfers means the frequencies which are same in phase.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*81hC0Qgz7EFHlCxrRIPMIg.jpeg" /></figure><p>Now you can connect that with our give super positioned input and you can understand how our given superpositioned input of frequency <strong>1/P</strong> can be cancled out by distructive interference of all other existing frequencies after QFT and output turns into single frequency <strong>1/P.</strong></p><p>So we are now just left with <strong>P</strong> and finally we can rais it to our guess <strong>g</strong> and add or subtract one from it <strong>(g^(P/2)±1) </strong>to get factors that has share factors with <strong>N </strong>as long as <strong>P</strong> is even and so by using Euclid’s algorithm we can find the actual factors and can able to break the Encryption to get the massage.ooghh!!!😅</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rO4LHHsuGqv4Y1cP-x36pw.jpeg" /></figure><p>As much as complicated it sounds but on the other hand getting help of some intrinsic properties of Quantum computers we can do this ridiculously fast.</p><p>And as much as complicated this algorithm in practice as we have discussed tons of details but on the other hand it’s so surprising to me that how simple the Core structure of shor’s algorithm is….</p><ol><li><em>Guess </em><strong><em>g</em></strong><em> that can be direct or share factors with </em><strong><em>N.</em></strong></li><li><em>Turn problem of guessing factor in guessing order </em><strong><em>P</em></strong><em> of </em><strong><em>g.</em></strong></li><li><em>And </em><strong><em>(g^(p/2)±1)</em></strong> <em>can be better guess.</em></li></ol><p>Now you might be worried about the current development of quantum computer as it turns out to be the security issues. But not to worry about that now because current quantum computers can’t solve the order-problem for non prime numbers that are currently used because it requires the space complexity in order of…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/266/0*kyukLZpjpUiUj-TN" /></figure><p>So not to worry about that at least now.</p><p>I’ve tried my best way to simplify the working of this algorithm.but if you still not get the point then checkout this amazing video from which i’ve taken the reference.link is given below…</p><p><a href="https://youtu.be/lvTqbM5Dq4Q"><strong>Quantum Computers break through security!/@Minute_Physics</strong></a></p><p>If you want to get into more detail description of Quantum procedure of superpositioning to turn our guess into better one then go through all these formulas…</p><p><a href="http://wikipedia.org/"><strong>Shor’s_algorithm</strong></a></p><p><strong>And always, Thanks for reading😊</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7cc1c61df617" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>