TWL06 Lexicon DAWG Engine


 
Thread Tools Search this Thread
Top Forums Programming TWL06 Lexicon DAWG Engine
# 1  
Old 04-22-2010
TWL06 Lexicon DAWG Engine

Hello UNIX,

I wrote a Java Web-Start application based on my C code for the Directed Acyclic Word Graph or DAWG. It is primarily an effective and convenient tool for training to be an expert Scrabble player. Beyond that, it should be more accessible than my low-level C code.

It works when I run it from my web browser, but I would really appreciate some constructive peer review.

Does it work for you? It should take just a minute to test-out:

www.pathcom.com/~vadco/dawg.html - Launch button in "Introduction".

Three major functions:

1 - Direct Word Search
2 - Wildcard Pattern Word Search
3 - Anagrammer (wildcard optional)


Thank you, and all the very best,

JohnPaul Adamovsky

PS - This is my first Java program. I still prefer C and Assembly, but the people have spoken. Performance takes a back seat to double-click-ability. I hope that both are covered on my web page.
Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. Web Development

Search Engine

Hey guys. I have a quick question. My friends and I are working on a search engine project that will hopefully be up and running by December of 2011. Here's my concern. What programs should I use to create the search engine. Thanks guys! :b: (9 Replies)
Discussion started by: OussenkoSearch
9 Replies

2. Programming

The World's Most Advanced Lexicon-Data-Structure

Hello, Over the past few years, I've conducted some rather thorough R&D in the field of lexicon-data-structure optimization. A Trie is a good place to start, followed by a traditional DAWG. Smaller means faster, but a traditional DAWG encoding operates as a Boolean-graph, unable to index... (1 Reply)
Discussion started by: HeavyJ
1 Replies

3. Programming

Conpressed, Direct Child Info, Word Tracking, Lexicon Data Structure, ADTDAWG?

Hello, Back in late August 2009, I decided to start working on a modification of the traditional Directed Acyclic Word Graph data structure. End Of Word Nodes did not match up with single words, and Child Information had to be discovered through list scrolling. These were a heavy price to... (0 Replies)
Discussion started by: HeavyJ
0 Replies

4. Shell Programming and Scripting

Search Engine

How do you write a search engline to search offline scripts? (3 Replies)
Discussion started by: hawaiifiver
3 Replies

5. Solaris

What is Engine ID?

Hi, When i am configuring SNMP, prompting for engine ID. By defaut it is giving 127.0.0.1:161:6629, so i have opted for the default one. Can anyone tell me how to get engine ID? (1 Reply)
Discussion started by: grrajeish
1 Replies

6. HP-UX

Where can i get Zend Engine from HP-UX ?

Where can i get Zend Engine for HP-UX ? anyone konws? help! (0 Replies)
Discussion started by: longware
0 Replies
Login or Register to Ask a Question
Graph::AdjacencyMatrix(3pm)				User Contributed Perl Documentation			       Graph::AdjacencyMatrix(3pm)

NAME
Graph::AdjacencyMatrix - create and query the adjacency matrix of graph G SYNOPSIS
use Graph::AdjacencyMatrix; use Graph::Directed; # or Undirected my $g = Graph::Directed->new; $g->add_...(); # build $g my $am = Graph::AdjacencyMatrix->new($g); $am->is_adjacent($u, $v) my $am = Graph::AdjacencyMatrix->new($g, distance_matrix => 1); $am->distance($u, $v) my $am = Graph::AdjacencyMatrix->new($g, attribute_name => 'length'); $am->distance($u, $v) my $am = Graph::AdjacencyMatrix->new($g, ...); my @V = $am->vertices(); DESCRIPTION
You can use "Graph::AdjacencyMatrix" to compute the adjacency matrix and optionally also the distance matrix of a graph, and after that query the adjacencyness between vertices by using the "is_adjacent()" method, or query the distance between vertices by using the "distance()" method. By default the edge attribute used for distance is "w", but you can change that in new(), see below. If you modify the graph after creating the adjacency matrix of it, the adjacency matrix and the distance matrix may become invalid. Methods Class Methods new($g) Construct the adjacency matrix of the graph $g. new($g, options) Construct the adjacency matrix of the graph $g with options as a hash. The known options are distance_matrix => boolean By default only the adjacency matrix is computed. To compute also the distance matrix, use the attribute "distance_matrix" with a true value to the new() constructor. attribute_name => attribute_name By default the edge attribute used for distance is "w". You can change that by giving another attribute name with the "attribute_name" attribute to new() constructor. Using this attribute also implicitly causes the distance matrix to be computed. Object Methods is_adjacent($u, $v) Return true if the vertex $v is adjacent to vertex $u, or false if not. distance($u, $v) Return the distance between the vertices $u and $v, or "undef" if the vertices are not adjacent. adjacency_matrix Return the adjacency matrix itself (a list of bitvector scalars). vertices Return the list of vertices (useful for indexing the adjacency matrix). ALGORITHM
The algorithm used to create the matrix is two nested loops, which is O(V**2) in time, and the returned matrices are O(V**2) in space. SEE ALSO
Graph::TransitiveClosure, Graph::BitMatrix AUTHOR AND COPYRIGHT
Jarkko Hietaniemi jhi@iki.fi LICENSE
This module is licensed under the same terms as Perl itself. perl v5.10.0 2005-04-16 Graph::AdjacencyMatrix(3pm)