473,472 Members | 2,163 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Burrows-Wheeler (BWT) Algorithm in Python

Hi, all

I've used Python Bz2 module for times and want to kown something about
Burrows-Wheeler (BWT) algorithm, the Bz2 module is wrriten in C, is
there a version in Python too?

BWT
http://gatekeeper.dec.com/pub/DEC/SR...rc-rr-124.html
Python Bz2 module
http://labix.org/python-bz2

thanks

Nov 2 '05 #1
4 4222
In article <11**********************@f14g2000cwb.googlegroups .com>,
"DENG" <po***********@gmail.com> wrote:
Hi, all

I've used Python Bz2 module for times and want to kown something about
Burrows-Wheeler (BWT) algorithm, the Bz2 module is wrriten in C, is
there a version in Python too?

BWT
http://gatekeeper.dec.com/pub/DEC/SR.../src-rr-124.ht
ml
Python Bz2 module
http://labix.org/python-bz2


It is perfectly possible to implement the BWT in Python. I can send you
a Python implementation I wrote, if you like; but if you're interested
in better understanding how the transform works, I would recommend you
try writing your own implementation. It's not very difficult to do,
though for large inputs you may find performance to be an issue.

Mark Nelson wrote a nice user-friendly article on the BWT for the Sep.
1996 issue of Dr. Dobbs, you might have a look:

http://www.dogma.net/markn/articles/bwt/bwt.htm

I hope this helps you get started.

-M

--
Michael J. Fromberger | Lecturer, Dept. of Computer Science
http://www.dartmouth.edu/~sting/ | Dartmouth College, Hanover, NH, USA
Nov 3 '05 #2
Michael J. Fromberger:
I can send you
a Python implementation I wrote, if you like; but if you're interested
in better understanding how the transform works, I would recommend you
try writing your own implementation.


I'd like to see it, if you want you can put it somewhere or send it
directly.

Bye and thank you,
bearophile

Nov 3 '05 #3
In article <11**********************@g43g2000cwa.googlegroups .com>,
be************@lycos.com wrote:
Michael J. Fromberger:
I can send you a Python implementation I wrote, if you like; but if
you're interested in better understanding how the transform works,
I would recommend you try writing your own implementation.


I'd like to see it, if you want you can put it somewhere or send it
directly.


You can grab a copy here:
http://www.cs.dartmouth.edu/~sting/sw/bwt.py

Cheers,
-M

--
Michael J. Fromberger | Lecturer, Dept. of Computer Science
http://www.dartmouth.edu/~sting/ | Dartmouth College, Hanover, NH, USA
Nov 4 '05 #4
thanks very much Michael

i'll try your implementation, i hope i can improve it after i
understand all the theory:)

cheers

Nov 4 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: pmdanger | last post by:
Hi, I'm new in java and my customer want an application which works under LINUX and WINDOWS plat forms. So, i though logically in JAVA. As i need to select my development tool, i would like...
1
by: Tony Burrows | last post by:
I need to add 2 or 3 dockable windows to an app, but I can't seem to find anything that will do this. Am I missing something simple, or do I need to write my own dockable class? Tony
2
by: Tony Burrows | last post by:
I need to be able to select a class when my app is running, then load it and create an instance. I know this means I need some sort of class loader but I'm getting lost. Classes to be loaded...
1
by: Tony Burrows | last post by:
I need to be able to load different classes at different times. The problem is that these classes may have the same name. Is there any way to unload a class at runtime so that it can be replaced...
2
by: Tony Burrows | last post by:
I know that in many C/C++ compilers using i++ is faster/ more efficient than i = i+1. Is it true for Java as well? Tony
10
by: Karl Burrows | last post by:
Here's a simple script I have pulled from various sources and wondered if there was a way to improve it. First, if the type the wrong password, I would like to redirect them to another login page...
3
by: mosimu | last post by:
I am using Visual C++ .NET 2003. I have discovered the following problem and did not find any other mention of it on the forums. This code was being run in Debug mode, console application, with...
18
by: Tony Burrows | last post by:
I'm just learning C as another language, and I'm trying to build some utilities into a library. I have this (crude I know) function: void insert(char* insrt, char* source, int place){ char...
3
by: Burrows | last post by:
HI all turned on VS2005 this morning and had a shock. My Tool Bar has gone hay wire The General tab has renamed itself #13119 and my Report Item Tab has replaced all the reporting controls with...
3
by: BombDrop | last post by:
Can any one help I have a method that will return a List to be bound as a datasource to a combobox see code for population below. I get the following error when i try to compile Error 29 ...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.