[Israel.pm] lecture slides
el01693 at elop.co.il
Sun Jan 11 22:09:27 PST 2004
Regarding edit distance lecture, slide 22.
For performance reason I think that instead of :
my @A=split //,$ARGV;
my @B=split //,$ARGV;
my @A = unpack "U*", $ARGV;
my @B = unpack "U*", $ARGV;
Which implies later a numeric comparison : my $p=($A[$i-1] == $B[$j-1])?0:1;
Also better (for real work) put the two lines of the minimum function
directly in the program and save the sub calling overhead.
From: Shlomo Yona [mailto:shlomo at cs.haifa.ac.il]
Sent: Saturday, January 10, 2004 10:24 PM
To: perl at perl.org.il
Subject: [Israel.pm] lecture slides
Slides from last month's lecture on garbage collection are available (sorry,
only powerpoint format) at:
Slides from this month's lecture on edit distance and string matching are
available (this time in HTML) at:
I'll introduce the necessary corrections to any slides once
I'm notified of a problem.
shlomo at cs.haifa.ac.il
Perl mailing list
Perl at perl.org.il
This e-mail message has been sent by Elop Electro-Optics industries LTD.
and is for the use of the intended recipients only.
The message may contain privileged or confidential information .
If you are not the intended recipient you are hereby notified that any use,
distribution or copying of this communication is strictly prohibited,
and you are requested to delete the e-mail and any attachments
and notify the sender immediately.
More information about the Perl