Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Friends
Macros
Pages
examples
greedy
shortest_superstring_example.cpp
Go to the documentation of this file.
1
//=======================================================================
2
// Copyright (c) 2013 Piotr Smulewicz
3
//
4
// Distributed under the Boost Software License, Version 1.0. (See
5
// accompanying file LICENSE_1_0.txt or copy at
6
// http://www.boost.org/LICENSE_1_0.txt)
7
//=======================================================================
16
#include "
paal/greedy/shortest_superstring/shortest_superstring.hpp
"
18
19
#include <iostream>
20
#include <string>
21
25
int
main
() {
26
std::vector<std::string> words({
"ba"
,
"ab"
,
"aa"
,
"bb"
});
27
28
std::cout <<
paal::greedy::shortestSuperstring
(words) << std::endl;
29
}
main
int main()
[Shortest Superstring Example]
Definition:
shortest_superstring_example.cpp:25
paal::greedy::shortestSuperstring
auto shortestSuperstring(const Words &words) -> decltype(std::declval< detail::shortest_superstring< Words >>().get_solution())
detail
Definition:
shortest_superstring.hpp:233
shortest_superstring.hpp
Generated on Tue Jan 31 2017 00:30:50 by
1.8.5