Skip to content

Commit

Permalink
feat: add landau vishkin algo
Browse files Browse the repository at this point in the history
  • Loading branch information
BenTenmann committed Feb 3, 2022
1 parent 2907135 commit 87783fe
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
19 changes: 19 additions & 0 deletions include/setriq/metrics/LandauVishkin.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
//
// Created by Benjamin Tenmann on 03/02/2022.
//

#ifndef SETRIQ_LANDAUVISHKIN_H
#define SETRIQ_LANDAUVISHKIN_H

#include "utils/type_defs.h"

namespace metric {
class LandauVishkin {
public:
LandauVishkin() = default;

double forward(const std::string&, const std::string&) const;
};
}

#endif //SETRIQ_LANDAUVISHKIN_H
13 changes: 13 additions & 0 deletions src/setriq/_C/metrics/LandauVishkin.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//
// Created by Benjamin Tenmann on 03/02/2022.
//

#include "metrics/LandauVishkin.h"

typedef struct {
size_t p, k;
} wf_diag_t;

double metric::LandauVishkin::forward(const std::string& a, const std::string& b) const {
return 0;
}

0 comments on commit 87783fe

Please sign in to comment.