Nondeterministic algorithm: Difference between revisions
Line 1: | Line 1: | ||
In [[computer science]], a '''polynomial-time approximation scheme''' ('''PTAS''') is a type of [[approximation algorithm]] for [[optimization problem]]s (most often, [[NP-hard]] optimization problems). | |||
A PTAS is an algorithm which takes an instance of an optimization problem and a parameter ε > 0 and, in polynomial time, produces a solution that is within a factor 1 + ε of being optimal (or 1 - ε for maximization problems). For example, for the Euclidean [[traveling salesman problem]], a PTAS would produce a tour with length at most (1 + ε)''L'', with ''L'' being the length of the shortest tour.<ref>[[Sanjeev Arora]], Polynomial-time Approximation Schemes for Euclidean TSP and other Geometric Problems, Journal of the ACM 45(5) 753–782, 1998.</ref> | |||
The running time of a PTAS is required to be polynomial in ''n'' for every fixed ε but can be different for different ε. Thus an algorithm running in time ''[[Big O notation|O]]''(''n''<sup>1/ε</sup>) or even ''O''(''n''<sup>exp(1/ε)</sup>) counts as a PTAS. | |||
==Variants== | |||
===Deterministic=== | |||
A practical problem with PTAS algorithms is that the exponent of the polynomial could increase dramatically as ε shrinks, for example if the runtime is O(''n''<sup>(1/ε)!</sup>). One way of addressing this is to define the '''efficient polynomial-time approximation scheme''' or '''EPTAS''', in which the running time is required to be ''O''(''n''<sup>''c''</sup>) for a constant ''c'' independent of ε. This ensures that an increase in problem size has the same relative effect on runtime regardless of what ε is being used; however, the constant under the [[Big O notation|big-O]] can still depend on ε arbitrarily. Even more restrictive, and useful in practice, is the '''fully polynomial-time approximation scheme''' or '''FPTAS''', which requires the algorithm to be polynomial in both the problem size ''n'' and 1/ε. All problems in FPTAS are [[fixed-parameter tractable]]. An example of a problem that has an FPTAS is the [[knapsack problem]]. | |||
Any [[Strongly NP-complete|strongly NP-hard]] optimization problem with a polynomially bounded objective function cannot have an FPTAS unless P=NP.<ref name="vvv"/> However, the converse fails: e.g. if P does not equal NP, [[List_of_knapsack_problems#Multiple_constraints|knapsack with two constraints]] is not strongly NP-hard, but has no FPTAS even when the optimal objective is polynomially bounded.<ref>{{cite book|authors= H. Kellerer and U. Pferschy and D. Pisinger| title = Knapsack Problems | publisher = Springer | year = 2004}}</ref> | |||
Unless [[P = NP problem|P = NP]], it holds that FPTAS ⊊ PTAS ⊊ [[APX]].<ref>{{citation|first=Thomas|last=Jansen|contribution=Introduction to the Theory of Complexity and Approximation Algorithms|pages=5–28|title=Lectures on Proof Verification and Approximation Algorithms|editor1-first=Ernst W.|editor1-last=Mayr|editor2-first=Hans Jürgen|editor2-last=Prömel|editor3-first=Angelika|editor3-last=Steger|publisher=Springer|year=1998|isbn=9783540642015|doi=10.1007/BFb0053011}}. See discussion following Definition 1.30 on [http://books.google.com/books?id=_C8Ly1ya4cgC&pg=PA20 p. 20].</ref> Consequently, under this assumption, APX-hard problems do not have PTASs. | |||
Another deterministic variant of the PTAS is the '''quasi-polynomial-time approximation scheme''' or '''QPTAS'''. A QPTAS has time complexity <math>n^{polylog(n)}</math> for each fixed <math>\epsilon >0</math>. | |||
===Randomized=== | |||
Some problems which do not have a PTAS may admit a [[randomized algorithm]] with similar properties, a '''polynomial-time randomized approximation scheme''' or '''PRAS'''. A PRAS is an algorithm which takes an instance of an optimization or counting problem and a parameter ε > 0 and, in polynomial time, produces a solution that has a ''high probability'' of being within a factor ε of optimal. Conventionally, "high probability" means probability greater than 3/4, though as with most probabilistic complexity classes the definition is robust to variations in this exact value. Like a PTAS, a PRAS must have running time polynomial in ''n'', but not necessarily in ε; with further restrictions on the running time in ε, one can define an '''efficient polynomial-time randomized approximation scheme''' or '''EPRAS''' similar to the EPTAS, and a '''fully polynomial-time randomized approximation scheme''' or '''FPRAS''' similar to the FPTAS.<ref name="vvv">{{cite book | |||
| last = Vazirani | |||
| first = Vijay V. | |||
| title = Approximation Algorithms | |||
| publisher = Springer | |||
| year = 2003 | |||
| pages = 294–295 | |||
| location = Berlin | |||
| isbn = 3-540-65367-8 | |||
}}</ref> | |||
==References== | |||
<references/> | |||
==External links== | |||
*Complexity Zoo: [https://complexityzoo.uwaterloo.ca/Complexity_Zoo:P#ptas PTAS], [https://complexityzoo.uwaterloo.ca/Complexity_Zoo:E#eptas EPTAS], [https://complexityzoo.uwaterloo.ca/Complexity_Zoo:F#fptas FPTAS] | |||
*Pierluigi Crescenzi, Viggo Kann, Magnús Halldórsson, [[Marek Karpinski]], and Gerhard Woeginger, [http://www.nada.kth.se/~viggo/wwwcompendium/ ''A compendium of NP optimization problems''] – list which NP optimization problems have PTAS. | |||
{{DEFAULTSORT:Polynomial-Time Approximation Scheme}} | |||
[[Category:Approximation algorithms]] | |||
[[Category:Complexity classes]] |
Revision as of 09:50, 26 November 2013
In computer science, a polynomial-time approximation scheme (PTAS) is a type of approximation algorithm for optimization problems (most often, NP-hard optimization problems).
A PTAS is an algorithm which takes an instance of an optimization problem and a parameter ε > 0 and, in polynomial time, produces a solution that is within a factor 1 + ε of being optimal (or 1 - ε for maximization problems). For example, for the Euclidean traveling salesman problem, a PTAS would produce a tour with length at most (1 + ε)L, with L being the length of the shortest tour.[1]
The running time of a PTAS is required to be polynomial in n for every fixed ε but can be different for different ε. Thus an algorithm running in time O(n1/ε) or even O(nexp(1/ε)) counts as a PTAS.
Variants
Deterministic
A practical problem with PTAS algorithms is that the exponent of the polynomial could increase dramatically as ε shrinks, for example if the runtime is O(n(1/ε)!). One way of addressing this is to define the efficient polynomial-time approximation scheme or EPTAS, in which the running time is required to be O(nc) for a constant c independent of ε. This ensures that an increase in problem size has the same relative effect on runtime regardless of what ε is being used; however, the constant under the big-O can still depend on ε arbitrarily. Even more restrictive, and useful in practice, is the fully polynomial-time approximation scheme or FPTAS, which requires the algorithm to be polynomial in both the problem size n and 1/ε. All problems in FPTAS are fixed-parameter tractable. An example of a problem that has an FPTAS is the knapsack problem.
Any strongly NP-hard optimization problem with a polynomially bounded objective function cannot have an FPTAS unless P=NP.[2] However, the converse fails: e.g. if P does not equal NP, knapsack with two constraints is not strongly NP-hard, but has no FPTAS even when the optimal objective is polynomially bounded.[3]
Unless P = NP, it holds that FPTAS ⊊ PTAS ⊊ APX.[4] Consequently, under this assumption, APX-hard problems do not have PTASs.
Another deterministic variant of the PTAS is the quasi-polynomial-time approximation scheme or QPTAS. A QPTAS has time complexity for each fixed .
Randomized
Some problems which do not have a PTAS may admit a randomized algorithm with similar properties, a polynomial-time randomized approximation scheme or PRAS. A PRAS is an algorithm which takes an instance of an optimization or counting problem and a parameter ε > 0 and, in polynomial time, produces a solution that has a high probability of being within a factor ε of optimal. Conventionally, "high probability" means probability greater than 3/4, though as with most probabilistic complexity classes the definition is robust to variations in this exact value. Like a PTAS, a PRAS must have running time polynomial in n, but not necessarily in ε; with further restrictions on the running time in ε, one can define an efficient polynomial-time randomized approximation scheme or EPRAS similar to the EPTAS, and a fully polynomial-time randomized approximation scheme or FPRAS similar to the FPTAS.[2]
References
- ↑ Sanjeev Arora, Polynomial-time Approximation Schemes for Euclidean TSP and other Geometric Problems, Journal of the ACM 45(5) 753–782, 1998.
- ↑ 2.0 2.1 20 year-old Real Estate Agent Rusty from Saint-Paul, has hobbies and interests which includes monopoly, property developers in singapore and poker. Will soon undertake a contiki trip that may include going to the Lower Valley of the Omo.
My blog: http://www.primaboinca.com/view_profile.php?userid=5889534 - ↑ 20 year-old Real Estate Agent Rusty from Saint-Paul, has hobbies and interests which includes monopoly, property developers in singapore and poker. Will soon undertake a contiki trip that may include going to the Lower Valley of the Omo.
My blog: http://www.primaboinca.com/view_profile.php?userid=5889534 - ↑ Many property agents need to declare for the PIC grant in Singapore. However, not all of them know find out how to do the correct process for getting this PIC scheme from the IRAS. There are a number of steps that you need to do before your software can be approved.
Naturally, you will have to pay a safety deposit and that is usually one month rent for annually of the settlement. That is the place your good religion deposit will likely be taken into account and will kind part or all of your security deposit. Anticipate to have a proportionate amount deducted out of your deposit if something is discovered to be damaged if you move out. It's best to you'll want to test the inventory drawn up by the owner, which can detail all objects in the property and their condition. If you happen to fail to notice any harm not already mentioned within the inventory before transferring in, you danger having to pay for it yourself.
In case you are in search of an actual estate or Singapore property agent on-line, you simply should belief your intuition. It's because you do not know which agent is nice and which agent will not be. Carry out research on several brokers by looking out the internet. As soon as if you end up positive that a selected agent is dependable and reliable, you can choose to utilize his partnerise in finding you a home in Singapore. Most of the time, a property agent is taken into account to be good if he or she locations the contact data on his website. This may mean that the agent does not mind you calling them and asking them any questions relating to new properties in singapore in Singapore. After chatting with them you too can see them in their office after taking an appointment.
Have handed an trade examination i.e Widespread Examination for House Brokers (CEHA) or Actual Property Agency (REA) examination, or equal; Exclusive brokers are extra keen to share listing information thus making certain the widest doable coverage inside the real estate community via Multiple Listings and Networking. Accepting a severe provide is simpler since your agent is totally conscious of all advertising activity related with your property. This reduces your having to check with a number of agents for some other offers. Price control is easily achieved. Paint work in good restore-discuss with your Property Marketing consultant if main works are still to be done. Softening in residential property prices proceed, led by 2.8 per cent decline within the index for Remainder of Central Region
Once you place down the one per cent choice price to carry down a non-public property, it's important to accept its situation as it is whenever you move in – faulty air-con, choked rest room and all. Get round this by asking your agent to incorporate a ultimate inspection clause within the possibility-to-buy letter. HDB flat patrons routinely take pleasure in this security net. "There's a ultimate inspection of the property two days before the completion of all HDB transactions. If the air-con is defective, you can request the seller to repair it," says Kelvin.
15.6.1 As the agent is an intermediary, generally, as soon as the principal and third party are introduced right into a contractual relationship, the agent drops out of the image, subject to any problems with remuneration or indemnification that he could have against the principal, and extra exceptionally, against the third occasion. Generally, agents are entitled to be indemnified for all liabilities reasonably incurred within the execution of the brokers´ authority.
To achieve the very best outcomes, you must be always updated on market situations, including past transaction information and reliable projections. You could review and examine comparable homes that are currently available in the market, especially these which have been sold or not bought up to now six months. You'll be able to see a pattern of such report by clicking here It's essential to defend yourself in opposition to unscrupulous patrons. They are often very skilled in using highly unethical and manipulative techniques to try and lure you into a lure. That you must also protect your self, your loved ones, and personal belongings as you'll be serving many strangers in your home. Sign a listing itemizing of all of the objects provided by the proprietor, together with their situation. HSR Prime Recruiter 2010. See discussion following Definition 1.30 on p. 20.
External links
- Complexity Zoo: PTAS, EPTAS, FPTAS
- Pierluigi Crescenzi, Viggo Kann, Magnús Halldórsson, Marek Karpinski, and Gerhard Woeginger, A compendium of NP optimization problems – list which NP optimization problems have PTAS.