performance - NP-complete, no efficient algorithm? -


I do not have much information about NP-completion, but read more about it here and here. The introduction of the book of algorithm, I am reading (myself), "Although no efficient algorithm has ever been found for the NP-complete problem, nobody has ever been proved that an efficient algorithm for someone is not in existence. " I'm just thinking, how does it know that they do not have any algorithm, which is not the most efficient ... if it's all the efficient set of algorithms?

Thank you,

Sam

Great question I'm curious I will answer the question, but this is my endeavor. It is my endeavor.

It is astonishing to know if a better algorithm exists, on which you come (if you know, then your algorithm will be better). The question arises when you should stop trying to see better algorithms. The primary approach involves coming with a lower limit of the problem, and then gradually makes them stronger and stronger.

Imagine that you are a researcher

There is a good start to investigate this problem and to think about the standard comparison based sorting problem, we have a list of n elements Given and want to sort it. So the worst algorithm has come up with all the n! Listings, and check that has been sorted. Then another intuitive approach is to use something like bubble sort, which is O (n ^ 2). We wonder if we can still do better. It is good to say that we win division and victory and we come with merge sort which is O (n log n). Now we are interested in knowing that merge sort is not the most efficient. So we spend more time thinking of a better algorithm but can not come together, so we become frustrated, and switch our approach and think about proving that O Log n) can not be a better comparison Now, with ease, a lower lower limit is o (n), just to sort the list, we need at least the time to read it (n) to read. But, we try to improve this lower bound. See if you can come with an improvement in the lower bound of O (n log n) if you have not seen it before. If you are not able to check this great article it proves that N log N is comparatively less:

Now we start thinking about NP's full problems on the top armor problem Consider (There is a set of Kashmir in a graph STT. Every edge has an event for at least one top) which is full of NP. We come up with the most intuitive brute force method to solve it (all by selecting K) Top options and testing of each possible solution) Now the question is, is there something more efficient in existence? Well, after a lot of effort, suppose we can not come fast anything. So we try less approach just like before and improve them better. O (n) is clearly a lower bound, but we can not prove the time of O (N Kashmir) less force (if we have proven such a lower limit, then that animal should solve the upper part The best way is). So we take a break, and work on other problems.

Then one day we are working on the problem of maximum independent set on the graph (there is a set S in Kashmir's Kashmir which is not adjacent to any two corners in S). We come with a brutal force solution, but we want to know that this is not the most effective algorithm. Although we can not do anything better and we can not come with a tight lower bound, so we can not say that something is present fast.

After several days we see that these problems are really the same, in the sense that a skilled algorithm for one gives a skilled algorithm for another:

Do not know if we have the algorithm most efficient for armor cover or independent set, then we can compare the problems relative to the hardness of each other, so that if we search for a good algorithm for one We can apply to the other problems.

TL; DR

Basically this boil down from the Feyman view:

Fennmann problem </ P> </ p> <p> In all seriousness, to show that our algorithm is the best or not: </ p> <ol> <li> Find a better algorithm or prove its existence (probable form From the lack of second problem) </ li> <li> Prove that there is a better algorithm may not exist that our algorithm Oneself will be revealed. </ Li> </ ol> <p> If two of the above fail, then surely, answering, try to think that the problem you are dealing with is so difficult, considering the problems Whom you can reduce and think about their rigidity. </ P> </ div> </ html><br /><br /> 
<script data-cfasync='false' type='text/javascript' src='//p257699.clksite.com/adServe/banners?tid=257699_495604_10&type=footer&size=37'></script>
<script data-cfasync='false' type='text/javascript' src='//p257699.clksite.com/adServe/banners?tid=257699_495604_11&tagid=9'></script>

  </div>
<div class='post-bottom'>
<div class='post-footer float-container'>
<div class='post-footer-line post-footer-line-1'>
</div>
<div class='post-footer-line post-footer-line-2'>
</div>
<div class='post-footer-line post-footer-line-3'>
</div>
</div>
<div class='post-share-buttons post-share-buttons-bottom invisible'>
<div class='byline post-share-buttons goog-inline-block'>
<div aria-owns='sharing-popup-Blog1-byline-489982917810226693' class='sharing' data-title='performance - NP-complete, no efficient algorithm? -'>
<button aria-controls='sharing-popup-Blog1-byline-489982917810226693' aria-label='Share' class='sharing-button touch-icon-button' id='sharing-button-Blog1-byline-489982917810226693' role='button'>
<div class='flat-icon-button ripple'>
<svg class='svg-icon-24'>
<use xlink:href='/responsive/sprite_v1_6.css.svg#ic_share_black_24dp' xmlns:xlink='http://www.w3.org/1999/xlink'></use>
</svg>
</div>
</button>
<div class='share-buttons-container'>
<ul aria-hidden='true' aria-label='Share' class='share-buttons hidden' id='sharing-popup-Blog1-byline-489982917810226693' role='menu'>
<li>
<span aria-label='Get link' class='sharing-platform-button sharing-element-link' data-href='https://www.blogger.com/share-post.g?blogID=4495161480069082640&postID=489982917810226693&target=' data-url='http://aftr12121.blogspot.com/2013/09/performance-np-complete-no-efficient.html?m=1' role='menuitem' tabindex='-1' title='Get link'>
<svg class='svg-icon-24 touch-icon sharing-link'>
<use xlink:href='/responsive/sprite_v1_6.css.svg#ic_24_link_dark' xmlns:xlink='http://www.w3.org/1999/xlink'></use>
</svg>
<span class='platform-sharing-text'>Get link</span>
</span>
</li>
<li>
<span aria-label='Share to Facebook' class='sharing-platform-button sharing-element-facebook' data-href='https://www.blogger.com/share-post.g?blogID=4495161480069082640&postID=489982917810226693&target=facebook' data-url='http://aftr12121.blogspot.com/2013/09/performance-np-complete-no-efficient.html?m=1' role='menuitem' tabindex='-1' title='Share to Facebook'>
<svg class='svg-icon-24 touch-icon sharing-facebook'>
<use xlink:href='/responsive/sprite_v1_6.css.svg#ic_24_facebook_dark' xmlns:xlink='http://www.w3.org/1999/xlink'></use>
</svg>
<span class='platform-sharing-text'>Facebook</span>
</span>
</li>
<li>
<span aria-label='Share to X' class='sharing-platform-button sharing-element-twitter' data-href='https://www.blogger.com/share-post.g?blogID=4495161480069082640&postID=489982917810226693&target=twitter' data-url='http://aftr12121.blogspot.com/2013/09/performance-np-complete-no-efficient.html?m=1' role='menuitem' tabindex='-1' title='Share to X'>
<svg class='svg-icon-24 touch-icon sharing-twitter'>
<use xlink:href='/responsive/sprite_v1_6.css.svg#ic_24_twitter_dark' xmlns:xlink='http://www.w3.org/1999/xlink'></use>
</svg>
<span class='platform-sharing-text'>X</span>
</span>
</li>
<li>
<span aria-label='Share to Pinterest' class='sharing-platform-button sharing-element-pinterest' data-href='https://www.blogger.com/share-post.g?blogID=4495161480069082640&postID=489982917810226693&target=pinterest' data-url='http://aftr12121.blogspot.com/2013/09/performance-np-complete-no-efficient.html?m=1' role='menuitem' tabindex='-1' title='Share to Pinterest'>
<svg class='svg-icon-24 touch-icon sharing-pinterest'>
<use xlink:href='/responsive/sprite_v1_6.css.svg#ic_24_pinterest_dark' xmlns:xlink='http://www.w3.org/1999/xlink'></use>
</svg>
<span class='platform-sharing-text'>Pinterest</span>
</span>
</li>
<li>
<span aria-label='Email' class='sharing-platform-button sharing-element-email' data-href='https://www.blogger.com/share-post.g?blogID=4495161480069082640&postID=489982917810226693&target=email' data-url='http://aftr12121.blogspot.com/2013/09/performance-np-complete-no-efficient.html?m=1' role='menuitem' tabindex='-1' title='Email'>
<svg class='svg-icon-24 touch-icon sharing-email'>
<use xlink:href='/responsive/sprite_v1_6.css.svg#ic_24_email_dark' xmlns:xlink='http://www.w3.org/1999/xlink'></use>
</svg>
<span class='platform-sharing-text'>Email</span>
</span>
</li>
<li aria-hidden='true' class='hidden'>
<span aria-label='Share to other apps' class='sharing-platform-button sharing-element-other' data-url='http://aftr12121.blogspot.com/2013/09/performance-np-complete-no-efficient.html?m=1' role='menuitem' tabindex='-1' title='Share to other apps'>
<svg class='svg-icon-24 touch-icon sharing-sharingOther'>
<use xlink:href='/responsive/sprite_v1_6.css.svg#ic_more_horiz_black_24dp' xmlns:xlink='http://www.w3.org/1999/xlink'></use>
</svg>
<span class='platform-sharing-text'>Other Apps</span>
</span>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<section class='comments embed' data-num-comments='0' id='comments'>
<a name='comments'></a>
<h3 class='title'>Comments</h3>
<div id='Blog1_comments-block-wrapper'>
</div>
<div class='footer'>
<div class='comment-form'>
<a name='comment-form'></a>
<h4 id='comment-post-message'>Post a Comment</h4>
<a href='https://www.blogger.com/comment/frame/4495161480069082640?po=489982917810226693&hl=en-GB&saa=85391&origin=http://aftr12121.blogspot.com&m=1&skin=contempo' id='comment-editor-src'></a>
<iframe allowtransparency='allowtransparency' class='blogger-iframe-colorize blogger-comment-from-post' frameborder='0' height='410px' id='comment-editor' name='comment-editor' src='' width='100%'></iframe>
<script src='https://www.blogger.com/static/v1/jsbin/1212307205-comment_from_post_iframe.js' type='text/javascript'></script>
<script type='text/javascript'>
      BLOG_CMT_createIframe('https://www.blogger.com/rpc_relay.html');
    </script>
</div>
</div>
</section>
</article>
</div>
</div><div class='widget PopularPosts' data-version='2' id='PopularPosts1'>
<h3 class='title'>
Popular posts from this blog
</h3>
<div class='widget-content'>
<div role='feed'>
<article class='post' role='article'>
<h3 class='post-title'><a href='http://aftr12121.blogspot.com/2015/06/excel-vba-how-to-delete.html?m=1'>excel vba - How to delete Solver(SOLVER.XLAM) code -</a></h3>
<div class='post-header'>
<div class='post-header-line-1'>
<span class='byline post-timestamp'>
-
<meta content='http://aftr12121.blogspot.com/2015/06/excel-vba-how-to-delete.html'/>
<a class='timestamp-link' href='http://aftr12121.blogspot.com/2015/06/excel-vba-how-to-delete.html?m=1' rel='bookmark' title='permanent link'>
<time class='published' datetime='2015-06-15T03:22:00-07:00' title='2015-06-15T03:22:00-07:00'>
June 15, 2015
</time>
</a>
</span>
</div>
</div>
<div class='item-content float-container'>
<div class='popular-posts-snippet snippet-container r-snippet-container'>
<div class='snippet-item r-snippetized'>
    After opening several examples of macro / code written, I suddenly get stuck with a code that seems safe. Solver (SOLVER.XLAM) is doing this notation and I would like to remove it from my system. I do not think this is a relativant code. Can anyone tell me what should I do? I have already installed something to remove the password but Solver is still asking for password and I can not get rid of it!     itemprop = "text">  Solver Excel is add-in If you want to delete it, then Excel Application & gt; Options & gt; Add-ins & gt; Search for 'Go to' button and gt; Uncheck the solver on the list like press something (I can not give you the exact path because I have the Polish version of Excel).   Trying to open Solver's VBA code is not good because it There is allegedly copyright.   Besides, I do not think Solver creates any disadvantages while working with Excel or VBA.    
</div>
<a class='snippet-fade r-snippet-fade hidden' href='http://aftr12121.blogspot.com/2015/06/excel-vba-how-to-delete.html?m=1'></a>
</div>
<div class='jump-link flat-button ripple'>
<a href='http://aftr12121.blogspot.com/2015/06/excel-vba-how-to-delete.html?m=1' title='excel vba - How to delete Solver(SOLVER.XLAM) code -'>
Read more
</a>
</div>
</div>
</article>
<article class='post' role='article'>
<h3 class='post-title'><a href='http://aftr12121.blogspot.com/2010/07/java-reaching-jtextfield-in.html?m=1'>java - Reaching JTextField in a DocumentListener -</a></h3>
<div class='post-header'>
<div class='post-header-line-1'>
<span class='byline post-timestamp'>
-
<meta content='http://aftr12121.blogspot.com/2010/07/java-reaching-jtextfield-in.html'/>
<a class='timestamp-link' href='http://aftr12121.blogspot.com/2010/07/java-reaching-jtextfield-in.html?m=1' rel='bookmark' title='permanent link'>
<time class='published' datetime='2010-07-15T03:22:00-07:00' title='2010-07-15T03:22:00-07:00'>
July 15, 2010
</time>
</a>
</span>
</div>
</div>
<div class='item-content float-container'>
<div class='popular-posts-snippet snippet-container r-snippet-container'>
<div class='snippet-item r-snippetized'>
    So, I ended up making a Sudoku Solver, but I want to improve it. To do this, I need to reach  betterJTextField  to  documentListener . I am using a  documentListener  to read from my  betterJTextFields  in real-time, I have the problem that  insertUpdate (DocumentEvent e) .   I need to reach  Better Zest Field  that happened to  DocumentEvent . For example, if invalid input,  would be better zestfield  turn red etc.   I have all my  better zestfield  in the matrix if you should know. Each area handles a number in the Sudoku.    @ Override public zero inserted (DocumentEvent e) {// Code removed which checks that the input in the fine zest field is OK. }    (  JFormattedTextfield  extended  JTextField )    public class betterJeststeffiledJFormattedTextField {private int row; Private int column; Public BetterJustStस्टfield (format format, infinite row, EIT column) {super (format); This.row = Line; This.column = Column; // To-O Auto-Generated Constructor Stub} Public Ent Miller () {ret...
</div>
<a class='snippet-fade r-snippet-fade hidden' href='http://aftr12121.blogspot.com/2010/07/java-reaching-jtextfield-in.html?m=1'></a>
</div>
<div class='jump-link flat-button ripple'>
<a href='http://aftr12121.blogspot.com/2010/07/java-reaching-jtextfield-in.html?m=1' title='java - Reaching JTextField in a DocumentListener -'>
Read more
</a>
</div>
</div>
</article>
<article class='post' role='article'>
<h3 class='post-title'><a href='http://aftr12121.blogspot.com/2012/09/c-add-image-in-stackpanel-based-on.html?m=1'>c# - Add Image in a stackpanel based on textbox input -</a></h3>
<div class='post-header'>
<div class='post-header-line-1'>
<span class='byline post-timestamp'>
-
<meta content='http://aftr12121.blogspot.com/2012/09/c-add-image-in-stackpanel-based-on.html'/>
<a class='timestamp-link' href='http://aftr12121.blogspot.com/2012/09/c-add-image-in-stackpanel-based-on.html?m=1' rel='bookmark' title='permanent link'>
<time class='published' datetime='2012-09-15T03:22:00-07:00' title='2012-09-15T03:22:00-07:00'>
September 15, 2012
</time>
</a>
</span>
</div>
</div>
<div class='item-content float-container'>
<div class='popular-posts-snippet snippet-container r-snippet-container'>
<div class='snippet-item r-snippetized'>
    I am trying to store the image in a stapple panel .. \ resources \ ebi.png Most of the time, the textbox input Based on "Atracount", the same image will be displayed in the StackPanel below, the sample code has been attempted, but it is getting an error saying    "The specified view is already visible to any other view Has a child or is the origin of a composition goal "    is the code below The Oshis:    private bitmap image bmp = new Bitmap image (new Uri ( "WpfApplication1; components / resources / ebi.png", Urikind. Riletiv Orsolut)); Private Zero EtReqCount_TextChanged (Object Sender, TextChangedEventArgs E) {StackPanel dynamicStackPanel = new StackPanel (); DynamicStackPanel.Width = 300; DynamicStackPanel.Height = 200; DynamicStackPanel.Background = New SolidColorBrush (Color. LightBu); DynamicStackPanel.Orientation = Orientation. Vertical; If (Attarcount.Text! = "") {For (int k = 1; k & lt; = int32.Parse (etReqCount.Text); k ++) {I...
</div>
<a class='snippet-fade r-snippet-fade hidden' href='http://aftr12121.blogspot.com/2012/09/c-add-image-in-stackpanel-based-on.html?m=1'></a>
</div>
<div class='jump-link flat-button ripple'>
<a href='http://aftr12121.blogspot.com/2012/09/c-add-image-in-stackpanel-based-on.html?m=1' title='c# - Add Image in a stackpanel based on textbox input -'>
Read more
</a>
</div>
</div>
</article>
</div>
</div>
</div></div>
</main>
</div>
<footer class='footer section' id='footer' name='Footer'><div class='widget Attribution' data-version='2' id='Attribution1'>
<div class='widget-content'>
<div class='blogger'>
<a href='https://www.blogger.com' rel='nofollow'>
<svg class='svg-icon-24'>
<use xlink:href='/responsive/sprite_v1_6.css.svg#ic_post_blogger_black_24dp' xmlns:xlink='http://www.w3.org/1999/xlink'></use>
</svg>
Powered by Blogger
</a>
</div>
<div class='image-attribution'>
Theme images by <a href=Michael Elkan