Skip to content

Commit a63f1e1

Browse files
authored
refactored internal classes associated with hash-table based implementation of Kendall Tau Sequence Distance (#486)
* moved relabeler to internal package * refactored Relabel;ByHashing * Update CHANGELOG.md
1 parent 203f74e commit a63f1e1

File tree

14 files changed

+1058
-647
lines changed

14 files changed

+1058
-647
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7-
## [Unreleased] - 2025-05-15
7+
## [Unreleased] - 2025-10-05
88

99
### Added
1010

@@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1515
### Removed
1616

1717
### Fixed
18+
* Refactored the internal classes associated with the hash-table implementation of Kendall Tau Sequence Distance, which were identified by RefactorFirst as highly-coupled.
1819

1920
### Dependencies
2021

src/main/java/org/cicirello/sequences/distance/KendallTauSequenceDistance.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* JavaPermutationTools: A Java library for computation on permutations and sequences
3-
* Copyright 2005-2023 Vincent A. Cicirello, <https://www.cicirello.org/>.
3+
* Copyright 2005-2025 Vincent A. Cicirello, <https://www.cicirello.org/>.
44
*
55
* This file is part of JavaPermutationTools (https://jpt.cicirello.org/).
66
*
@@ -23,6 +23,9 @@
2323

2424
import java.util.Arrays;
2525
import java.util.List;
26+
import org.cicirello.sequences.distance.internal.KendallTauRelabeler;
27+
import org.cicirello.sequences.distance.internal.RelabelByHashing;
28+
import org.cicirello.sequences.distance.internal.RelabelBySorting;
2629

2730
/**
2831
* Kendall Tau Sequence Distance is the minimum number of adjacent swaps necessary to transform one

0 commit comments

Comments
 (0)