Wikipediadan təsadüfi məlumatlar :
In computational complexity theory, randomized polynomial time (RP) is the complexity class of decision problems for which a probabilistic Turing machine exists with these properties:
| RP algorithm (1 run) | ||
|---|---|---|
Answer produced Correct
answer |
Yes | No |
| Yes | ≥ 1/2 | ≤ 1/2 |
| No | 0 | 1 |
| RP algorithm (n runs) | ||
Answer produced Correct
answer |
Yes | No |
| Yes | ≥ 1 − 2−n | ≤ 2−n |
| No | 0 | 1 |
| co-RP algorithm (1 run) | ||
Answer produced Correct
answer |
Yes | No |
| Yes | 1 | 0 |
| No | ≤ 1/2 | ≥ 1/2 |
- It always runs in polynomial time in the input size
- If the correct answer is NO, it always returns NO
- If the correct answer is YES, then it returns YES with probability at least 1/2 (otherwise, it returns NO).
In other words, the algorithm is allowed to flip a truly random coin while it is running. The only case in which the algorithm can return YES is if the actual answer is YES; therefore if the algorithm terminates and produces YES, then the correct answer is definitely YES; however, the algorithm can terminate with NO regardless of the actual answer. That is, if the algorithm returns NO, it might be wrong.
Some authors call this class R, although this name is more commonly used for the class of recursive languages.
If the correct answer is YES and the algorithm is run n times with the result of each run statistically independent of the others, then it will return YES at least once with probability at least 1 − 2−n. So if the algorithm is run 100 times, then the chance of it giving the wrong answer every time is lower than the chance that cosmic rays corrupted the memory of the computer running the algorithm.[1] In this sense, if a source of random numbers is available, most algorithms in RP are highly practical.
The fraction 1/2 in the definition is arbitrary. The set RP will contain exactly the same problems, even if the 1/2 is replaced by any constant nonzero probability less than 1; here constant means independent of the input to the algorithm.
Formal definition
[edit]A language L is in RP if and only if there exists a probabilistic Turing machine M, such that
- M runs for polynomial time on all inputs
- For all x in L, M outputs 1 with probability greater than or equal to 1/2
- For all x not in L, M outputs 0
Alternatively, RP can be defined using only deterministic Turing machines. A language L is in RP if and only if there exists a polynomial p and deterministic Turing machine M, such that
- M runs for polynomial time p on all inputs
- For all x in L, the fraction of strings y of length p(|x|) that satisfy is greater than or equal to 1/2
- For all x not in L, and all strings y of length p(|x|),
In this definition, the string y corresponds to the output of the random coin flips that the probabilistic Turing machine would have made. For some applications this definition is preferable since it does not mention probabilistic Turing machines.
Related complexity classes
[edit]
The definition of RP says that a YES-answer is always right and that a NO-answer might be wrong, as a YES-instance can return a NO-answer. The complexity class co-RP is the complement, where a YES-answer might be wrong while a NO-answer is always right.
The class BPP describes algorithms that can give incorrect answers on both YES and NO instances, and thus contains both RP and co-RP. The intersection of the sets RP and co-RP is called ZPP. Just as RP may be called R, some authors use the name co-R rather than co-RP.
Connection to P and NP
[edit]P is a subset of RP, which is a subset of NP. Similarly, P is a subset of co-RP, which is a subset of co-NP. It is not known whether these inclusions are strict. However, if the commonly believed conjecture P = BPP is true, then RP, co-RP, and P collapse (are all equal). Assuming in addition that P ≠ NP, this then implies that RP is strictly contained in NP. It is not known whether RP = co-RP, or whether RP is a subset of the intersection of NP and co-NP, though this would be implied by P = BPP.
A natural example of a problem in co-RP currently not known to be in P is polynomial identity testing, the problem of deciding whether a given multivariate arithmetic expression over the integers is the zero-polynomial. For instance, x·x − y·y − (x + y)·(x − y) is the zero-polynomial while x·x + y·y is not.
An alternative characterization of RP that is sometimes easier to use is the set of problems recognizable by nondeterministic Turing machines where the machine accepts if and only if at least some constant fraction of the computation paths, independent of the input size, accept. NP on the other hand, needs only one accepting path, which could constitute an exponentially small fraction of the paths. This characterization makes the fact that RP is a subset of NP obvious.
See also
[edit]- Randomized algorithm
References
[edit]- ^ This comparison is attributed to Michael O. Rabin on p. 252 of Gasarch, William (2014), "Classifying Problems into Complexity Classes", in Memon, Atif (ed.), Advances in Computers, Vol. 95 (PDF), Academic Press, pp. 239–292.
This article needs additional citations for verification. (October 2014) |
External links
[edit]- RP at the Complexity Zoo
Kommunal ödənişləri qeydiyyatsız və sürətli həyata keçirin
Kommunal.az onlayn ödənişi asanlaşdırır. Onlayn Ödə, Ödəniş tarixçənizi yadda saxlayın, Hesablarınızı avtomatik ödəyin, Kartdan karta pul köçürün
Bakıda kommunal xidmətləri onlayn ödəmək 💳 ödəniş işıq pulu ödənişi ⚡️ mənzil və kommunal xidmətlər 💰 kirayə 🔒 təhlükəsiz ✅ Azərbaycanda istənilən bank kartından 📞 * 1919 | EPUL
“ASAN Kommunal” mərkəzləri bazar ertəsi - cümə günləri saat 09:00-dan-18:00-dək, şənbə günü isə saat 10:00-17:00-dək nahar fasiləsi olmadan fəaliyyət göstərir. “ASAN Kommunal” mərkəzlərində sənədlərin qəbulu həftənin beş günü saat 09:00-dan 17:30-dək, şənbə günü isə saat 10:00-dan 16:30-dək fasiləsiz həyata keçirilir.
Azərbaycan Respublikası Prezidentinin 06 avqust 2008-ci il tarixli 2983 saylı sərəncamını həyata keçirmək məqsədi ilə Bakı şəhər İcra Hakimiyyəti Başçısı 02 fevral 2009-cu il tarixdə 45 saylı sərəncamla, Bakı şəhərinin inzibati ərazisində əmələ gəlmə mənbəyindən asılı olmayaraq, bütün bərk məişət tullantılarının daşınması və zərərsizləşdirilməsini Bakı şəhər İcra Hakimiyyəti Aparatı Mənzil Kommunal Təsərrüfatı Departamentinin İxtisaslaşdırılmış Sanitariya – Təmizlik və Kommunal Xidmətlər İdarəsinə həvalə etmişdir.
Hesab.az offers online payments for Mobile, Utilities, TV, Internet, Phone and many other services
Bank Ödənişləri - Online Kommunal Ödənişlər. İndi siz mobil, internet, sığorta, bank və kredit ödənişlərinizi asanlıqla online odeme formada edə bilərsiniz. Onlayn Odeme Sizə daha yaxın
Onlayn xidmətlər - Kredit, kommunal ödənişlər, eləcə də arayış və çıxarışların alınması. Banka gəlmədən Kapital Bankın online odeme xidmətindən banka gəlmədən yararlanın
Mobile operators · Bank Services · Insurance · Phone · Kommunal Services · Cable TV · Internet · Other · Entertainment.
Elektron pul kisəsinə saytdan və ya mobil proqram vasitəsilə daxil olun. "Kommunal ödənişlər" bölməsini seçin. Öz ödəniş kodunuzu və məbləği daxil edin.
Hökumət ödənişləri Bank xidmәtlәri Mobil operatorlar Telefon Kommunal xidmәtlәr İnternet TV Sığorta Təhsil Taksi və Çatdırılma Otellər və Turizm Әylәncә
Hökumət Ödəniş Portalı (HÖP) – ölkə iqtisadiyyatında nağdsız hesablaşmaların genişləndirilməsi və bütün regionlarda maliyyə xidmətlərinə çıxış imkanlarının artırılması məqsədilə Azərbaycan Respublikası Mərkəzi Bankı tərəfindən yaradılmışdır. Portal vasitəsilə mərkəzləşdirilmiş qaydada vergi, rüsum, icarə haqqı və digər büdcə ödənişlərinin, həmçinin kommunal, rabitə və başqa kütləvi xidmətlər üzrə ödənişlərin internet üzərindən ödəniş kartlarından, bank hesablarından istifadə edilməklə, həmçinin bankların və milli poçt operatorunun maliyyə xidməti nöqtələrində nağd qaydada toplanılması təmin edilmişdir.
Çoxfunksiyalı “ASAN ödəniş” sistemi cərimə, kommunal xidmət, kabel televiziyası, mobil operator, internet və digər ödənişləri qısa zamanda, təhlükəsiz və rahat şəkildə həyata keçirmək imkanı yaradır. Respublika daxilində geniş ərazini əhatə edən “ASAN Ödəniş” terminalları, həmçinin www.asanpay.az portalı və “ASAN Pay” mobil əlavəsi vasitəsilə istənilən xidmət üzrə heç bir məhdudiyyəti olmadan 24/7 ödəniş etmək mümkündür.
Bütün xidmətlər bir Ödəmə Nöqtəsində! Qeydiyyatdan keçərək istənilən xidmətlər üzrə ödəniş edin və bonus qazanın.
Portmanat.az - elektron pulqabı, onlayn ödəmə,kommunal ödənişlər, mobil ödəmə, hesab ödənişləri, tv ödənişləri, internet ödəmə
Son illərdə həyatımıza daxil olan elektron xidmətlərdən biri də elektron ödəniş sistemləridir. Bu ödəniş sistemləri malların, iş və xidmətlərin dəyərinin ödənilməsi, öz hesabından digər şəxsin hesabına pul vəsaitinin köçürülməsi üçün istifadə edilən ödəniş alətidir.
Bütün kommunal, mobil, elektron imza, dövlət, internet, sığorta, bank, Naxçıvan və digər ödənişlərini Smartpay üzərindən et
