repo.or.cz
/
vspell.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
fix mem leaks in *::get_next()
[vspell.git]
/
libvspell
/
pfs.h
blob
6bd053b26100b3206d271e89769bac602f6a9b58
1
#ifndef __PFS_H__
// -*- tab-width: 2 mode: c++ -*-
2
#define __PFS_H__
3
4
#ifndef __DAG_H__
5
#include
"dag.h"
6
#endif
7
8
/**
9
Priority-First Search.
10
This is the PFS approach to the shortest path problem in graph.
11
*/
12
13
class
PFS
14
{
15
public
:
16
// void segment_best(const Lattice &words,Segmentation &seps);
17
void
search
(
const
DAG
&
dag
,
Path
&
seps
);
18
};
19
20
#endif