You are here

public function LongestCommonSubsequence::calculate in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/sebastian/diff/src/LCS/LongestCommonSubsequence.php \SebastianBergmann\Diff\LCS\LongestCommonSubsequence::calculate()

Calculates the longest common subsequence of two arrays.

Parameters

array $from:

array $to:

Return value

array

2 methods override LongestCommonSubsequence::calculate()
MemoryEfficientImplementation::calculate in vendor/sebastian/diff/src/LCS/MemoryEfficientLongestCommonSubsequenceImplementation.php
Calculates the longest common subsequence of two arrays.
TimeEfficientImplementation::calculate in vendor/sebastian/diff/src/LCS/TimeEfficientLongestCommonSubsequenceImplementation.php
Calculates the longest common subsequence of two arrays.

File

vendor/sebastian/diff/src/LCS/LongestCommonSubsequence.php, line 32

Class

LongestCommonSubsequence
Interface for implementations of longest common subsequence calculation.

Namespace

SebastianBergmann\Diff\LCS

Code

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