About site: Programming/Languages/Regular Expressions/Perl - Perl Regular Expression Matching is NP-Complete
Return to Computers also Computers
  About site: http://perl.plover.com/NPC/

Title: Programming/Languages/Regular Expressions/Perl - Perl Regular Expression Matching is NP-Complete A discussion of the complexity of regular expression matching algorithms in Perl.
CHI_\'96 "Common Ground" - conference on human factors in computing systems. 13-18 Apr 1996. Vancouver, British Columbia, Canada.

Katie A filesystem-based version control system, much like ClearCase. Uses NFS to provide a virtual, versions filesystem. Open Source.

Daycare_Manager_Pro This daycare management business system handles of recordkeeping, billing and management needs.

Linux_Assembly On this site you will find various resources ranging from tutorials, documentation up to actual Linux and Unix tools written in assembly language.

Studio_Log News, tutorials, scripts and software. Also includes general Mac OS scripting, Konfabulator and Cocoa Programming tips and techniques.

MED_Soundstudio Amiga tracker OctaMED now has version for Windows (called MED Soundstudio). Mod music files too.


  Alexa statistic for http://perl.plover.com/NPC/





Get your Google PageRank






Please visit: http://perl.plover.com/NPC/


  Related sites for http://perl.plover.com/NPC/
    James_Hicks_and_Associates,_Inc__Home_Page Our experienced consulting firm provides quality services in all phases of software development from initial design, to programming, and implementation.
    Stay_Online Manufacturer and distributor of data, rack, and power products. Items include power cords and power management, racking solutions, cabinets, testers, converters, hard-to-find technical products.
    EDBT_2006 10th International Conference on Extending Database Technology. Munich, Germany; March 26-30, 2006
    PicSafe Image viewer and media player with built in encryption available for Windows platforms.
    SecurityFocus__Microsoft_looks_to_\"monkeys\"_to_find_Web_threats Article discussing how Microsoft have developed a series of Windows XP clients, dubbed "honeymonkeys", that crawl the Web finding sites that use unreported vulnerabilities to compromise unsuspecting u
    CGI_pm A popular module for CGI programming; read forms, use cookies, and generate HTML. Included in the standard distribution of Perl 5.
    Breadbox_Computer One of the few 3rd party developers for GEOS. Commercial programs and trial versions are available for GeoWorks Ensemble, NewDeal Office, Nokia N9000 Cunicator, Brother GeoBook and other GEOS based de
    XPeRT_Keyboard Escape the Qwerty speed trap with XPeRT Keyboard layout. Built for speed & easy transition.
    The_Brainfuck_Programming_Language Brief overview, introduction to commands, informal standards for programmers and implementers, and related resources.
    Machine_Learning_Group_-_Stockholm_University Research on inductive logic programming for natural language processing and for knowledge discovery in databases.
    EvoSapien_-_Robosapien_V2_Headquarters Tips, tricks, hacks, modifications, and software programs for the Robosapien V2, Robosapien, Robopet & Roboraptor robots. Includes pictures, movies, tutorials, and a forum for novice and advanced
    Hoover\'s_Online PeopleSoft company profile and investor information.
    Music_Conduit Tool that allows one to transfer music to older, serial only based devices.
    DomainPro Company caters to high volume customers. Site includes newsletters for industry news and a list of domain auction sites.
    PADTAD_2008 Workshop on Parallel and Distributed Systems: Testing, Analysis, and Debugging. In conjunction with International Symposium on Software Testing and Analysis. July 20–21, Seattle, Washington, USA.
    ASIACRYPT_2005 Annual International Conference on the Theory and Application of Cryptology and Information Security. Chennai, India; 4–8 December 2005.
    E-Books_Target_Pricey_Print_Books Explains the technology from two vendors to be used to read e-books. [PC World] (April 13, 1999)
    Infrequently_Asked_Questions Jini things that discover "the hard way" for those who come after.
    Unearthed Specializes in design for online tourism operators. Services include consulting, promotion, and flash and database development.
    REVOBILD Pure text Internet tools for the DOS operating system, including a web page grabber and mail reader.
This is websites2007.org cache of m/ as retrieved on 2008.10.10 websites2007.org's cache is the snapshot that we took of the page as we crawled the web. The page may have changed since that time.
Perl Regular Expression Matching is NP-Hard

Perl Regular Expression Matching is NP-Hard

Matching ordinary regular expresions can be done in polynomialtime, proportional to MN, where M is the lengthof the regular expression and N is the length of the stringto be matched. The usual method for this is: Parse the regularexpression and construct an equivalent finite automaton (FA), whichwill have O(M) states; then simulate the actionof the FA on the input, which takes O(MN)time. My Regex.pm moduledemonstrates this.However, adding backreferences to regular expressions complicatesthem so that the usual FA construction does not work. Perl can handlethese extended regexes, but it sometimes takes a long time to find outif there is a match or not. For example, Perl takes exponential time(in the length of the string to be matched) to check whether or not astring matches the regex /^(?:(\d+)|::)*$/. One is tempted to wonder whether this difficulty is inherent, orwhether there might be a clever way of speeding up the matchingalgorithm. The answer is that there is probably no clever way tospeed up the algorithm, and that the exponential running time of thematching algorithm is probably unavoidable. We show below that regexmatching is NP-hard when regexes are allowed to havebackreferences.The usual method of showing that a problem P isNP-hard is by showing that some other NP-hard problem,Q, could be solved efficiently if P could be also. Ishowed that instances of the GRAPH 3-COLORABILITY problem can bereduced to instances of regex matching. Abigail showed that instancesof the 3CNF-SAT problem can be reduced to instances of regexmatching. Greg Bacon showed that instances of the CLIQUE problem canbe reduced to instances of regex matching. I thought I had a proof by reduction from the SUBSET-SUM problem, but I realized it had an error, so it's unavailable (except to Papadimitriou's cs270 students) until I can fix it, or maybe forever. Reduction from the 3CNF-SAT problem. (Due to Abigail.) Reduction from graph 3-colorability problem.

Some Notes About NP-Completeness

This page used to say "Regex Matching is NP-Complete". That maynot be correct. I've been meaning to fix it for years, but I nevergot around to it before. To show that regex matching is NP-complete,we need to show two things. First, we need to show that it isNP-hard; the proofs on this page do that. Second, we need to show thatregex matching is in NP. The proofs don't do that.Return to: Universe of Discourse main page |What's new page |Perl Paraphernaliamjd-perl-npc@plover.com
 

A

discussion

of

the

complexity

of

regular

expression

matching

algorithms

in

Perl.

http://perl.plover.com/NPC/

Perl Regular Expression Matching is NP-Complete 2008 October

dvd rental

dvd


A discussion of the complexity of regular expression matching algorithms in Perl.

Rules




© 2008 Internet Explorer 5+ or Netscape 6+

Recommended Sites: 1. Arts - Business - Computers - Games - Health - Home - Kids and Teens - News - Recreation - Reference - Regional - Science - Shopping - Society - Sports - World Miss Gallery - Top Anime Hentai - DVD rental by mail - Credit Card - Justin Gatlin - Adverse Credit Remortgage - Advertising - Threadless Coupon Code
2008-10-10 22:00:51

Copyright 2005, 2006 by Webmaster
Websites is cool :) 261Hotell Istanbul - £opata - Transformers - Aparaty Cyfrowe - Meble Hotelowe