Class SebastianBergmann\Diff\LCS\TimeEfficientImplementation

InheritanceSebastianBergmann\Diff\LCS\TimeEfficientImplementation
ImplementsSebastianBergmann\Diff\LCS\LongestCommonSubsequence

Time-efficient implementation of longest common subsequence calculation.

Public Methods

Hide inherited methods

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

Method Details

calculate() public method

Calculates the longest common subsequence of two arrays.

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