Skip to content

A Julia package for finding longest common and longest contiguous subsequences

License

Notifications You must be signed in to change notification settings

WestleyArgentum/Subsequences.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Subsequences.jl

A Julia package for finding longest common and longest contiguous subsequences

Build Status

Quickstart

julia> Pkg.add("Subsequences")

julia> using Subsequences

julia> a = "abc-abc----"; b = "___ab_c__abc";

julia> seq, a_range, b_range = longest_common_subsequence(a, b)
("abcabc",1:7,4:12)

julia> a[a_range]
"abc-abc"

julia> b[b_range]
"ab_c__abc"

julia> seq, a_range, b_range = longest_contiguous_subsequence(a, b)
("abc",1:3,10:12)

julia> a[a_range]
"abc"

julia> b[b_range]
"abc"

About

A Julia package for finding longest common and longest contiguous subsequences

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages