Interface SebastianBergmann\Diff\LCS\LongestCommonSubsequence

Implemented bySebastianBergmann\Diff\LCS\MemoryEfficientImplementation, SebastianBergmann\Diff\LCS\TimeEfficientImplementation

Interface for implementations of longest common subsequence calculation.

Public Methods

Hide inherited methods

MethodDescriptionDefined By
calculate() Calculates the longest common subsequence of two arrays. SebastianBergmann\Diff\LCS\LongestCommonSubsequence

Method Details

calculate() public abstract method

Calculates the longest common subsequence of two arrays.

public abstract array calculate ( array $from, array $to )
$from array
$to array