Concern 2 – Is this the optimal way to get these results?

The second concern is about finding the answer to the following question:

Is this the optimal solution and can we verify that no other solution exists for this problem that is better than our solution?

At first glance, this question looks quite simple to answer. However, for a certain class of algorithms, researchers have unsuccessfully spent decades verifying whether a particular solution generated by an algorithm is also the best and that no other solution exists that can give better results. So, it becomes important that we first understand the problem, its requirements, and the resources available to run the algorithm. We need to acknowledge the following statement:

Should we aim to find the optimal solution for this problem? Finding and verifying the optimal solution is so time-consuming and complex that a workable solution based on heuristics is our best bet.

So, understanding the problem and its complexities is important and helps us estimate the resource requirements.

Before we start looking deeper into this, first, let's define a couple of terms here:

  • Polynomial algorithm: If an algorithm has a time complexity of O(nk ), we call it a polynomial algorithm, where k is a constant.
  • Certificate: A proposed candidate solution produced at the end of an iteration is called a certificate. As we progress iteratively in solving a particular problem, we typically generate a series of certificates. If the solution is moving toward convergence, each generated certificate will be better than the previous one. At some point, when our certificate meets the requirements, we will choose that certificate as the final solution.

In Chapter 1, Overview of Algorithms, we introduced Big O notation, which can be used to analyze the time complexity of an algorithm. In the context of analyzing time complexity, we are looking at the following different time intervals:

  • The time it takes for an algorithm to produce a proposed solution, called a certificate (tr)
  • The time it takes to verify the proposed solution (certificate), ts
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.14.70.203