All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Macros Pages
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 //=======================================================================
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 }
int main()
[Shortest Superstring Example]
auto shortestSuperstring(const Words &words) -> decltype(std::declval< detail::shortest_superstring< Words >>().get_solution())
detail