php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #63440 [DE] Fehler in Beschreibung
Submitted: 2012-11-05 15:29 UTC Modified: 2015-03-22 17:30 UTC
From: gunnar at bittersmann dot de Assigned: cmb (profile)
Status: Closed Package: Translation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: gunnar at bittersmann dot de
New email:
PHP Version: OS:

 

 [2012-11-05 15:29 UTC] gunnar at bittersmann dot de
Description:
------------
---
From manual page: http://www.php.net/function.levenshtein#refsect1-function.levenshtein-description
---
Falsch:
Komplexität des Algorithmus ist 0(m*n), wobei n und m die Länge von str1 und str2 darstellen (deutlich besser, wenn man mit similar_text() vergleicht, was mit 0(max(n,m)**3) daher kommt, aber trotzdem immer noch teuer).

Das liest sich so, als ob similar_text() kürzere Laufzeit hätte als levenshtein(). Aber 0(m*n) ≤ 0(max(n,m)**3)

Auf englisch [http://de1.php.net/manual/en/function.levenshtein.php]:
The complexity of the algorithm is O(m*n), where n and m are the length of str1 and str2 (rather good when compared to similar_text(), which is O(max(n,m)**3), but still expensive).

Auf deutsch könnte man sagen („als“ einfügen):
Komplexität des Algorithmus ist 0(m*n), wobei n und m die Länge von str1 und str2 darstellen (deutlich besser, als wenn man mit similar_text() vergleicht, was mit 0(max(n,m)**3) daher kommt, aber trotzdem immer noch teuer).



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-11-15 11:33 UTC] yannick@php.net
-Summary: Fehler in Beschreibung (de) +Summary: [DE] Fehler in Beschreibung
 [2015-03-22 17:29 UTC] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&revision=336136
Log: fixes #63440
 [2015-03-22 17:30 UTC] cmb@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: cmb
 [2015-03-22 17:30 UTC] cmb@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 06 07:01:33 2025 UTC