diff --git a/src/aud/exam/prep/list/DoubleListItemProcessor.java b/src/aud/exam/prep/list/DoubleListItemProcessor.java new file mode 100644 index 0000000..67829ce --- /dev/null +++ b/src/aud/exam/prep/list/DoubleListItemProcessor.java @@ -0,0 +1,6 @@ +package aud.exam.prep.list; + +import aud.exam.prep.SequenceProcessor; + +abstract class DoubleListItemProcessor implements SequenceProcessor> { +} \ No newline at end of file diff --git a/src/aud/exam/prep/list/IterativeDoubleListItemProcessor.java b/src/aud/exam/prep/list/IterativeDoubleListItemProcessor.java new file mode 100644 index 0000000..a9a6393 --- /dev/null +++ b/src/aud/exam/prep/list/IterativeDoubleListItemProcessor.java @@ -0,0 +1,194 @@ +package aud.exam.prep.list; + +import aud.exam.prep.Pair; + +import java.util.Comparator; + +public class IterativeDoubleListItemProcessor extends DoubleListItemProcessor { + + @Override + public boolean find(DoubleListItem list, T t) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public boolean findBinary(DoubleListItem list, T t, Comparator cmp) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public boolean override(DoubleListItem list, T from, T to) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public boolean overrideAll(DoubleListItem list, T from, T to) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public boolean overrideAt(DoubleListItem list, T to, int index) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public void insertInOrder(DoubleListItem list, T t, Comparator cmp) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public boolean remove(DoubleListItem list, T t) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public boolean removeAll(DoubleListItem list, T t) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public boolean isAscending(DoubleListItem list, Comparator cmp) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public T max(DoubleListItem list, Comparator cmp) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public T secondMax(DoubleListItem list, Comparator cmp) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public boolean isItemWiseLessOrEqual(DoubleListItem a, DoubleListItem b, Comparator cmp) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public boolean isItemWiseLess(DoubleListItem a, DoubleListItem b, Comparator cmp) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public boolean isLexSmaller(DoubleListItem a, DoubleListItem b, Comparator cmp) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public void exchangePairs(DoubleListItem list) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public void rotateTriples(DoubleListItem list) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public void removeEverySecond(DoubleListItem list) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public void doubleAllKeys(DoubleListItem list) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public DoubleListItem rotateRight(DoubleListItem list) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public DoubleListItem rotateLeft(DoubleListItem list) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public void removeDuplicates(DoubleListItem list) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public DoubleListItem invert(DoubleListItem list) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public DoubleListItem clone(DoubleListItem list) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public DoubleListItem alternate(DoubleListItem a, DoubleListItem b) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public DoubleListItem merge(DoubleListItem a, DoubleListItem b, Comparator cmp) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public Pair, DoubleListItem> divideAlternating(DoubleListItem list) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public Pair, DoubleListItem> divideAlternatingByRuns(DoubleListItem list, Comparator cmp) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public Pair, DoubleListItem> divideByPivot(DoubleListItem list, T pivot, Comparator cmp) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public boolean check(DoubleListItem list) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public DoubleListItem create(Iterable iterable) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public Iterable iterate(DoubleListItem list) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } +} \ No newline at end of file diff --git a/src/aud/exam/prep/list/IterativeSingleListItemProcessor.java b/src/aud/exam/prep/list/IterativeSingleListItemProcessor.java new file mode 100644 index 0000000..2a8e9b4 --- /dev/null +++ b/src/aud/exam/prep/list/IterativeSingleListItemProcessor.java @@ -0,0 +1,194 @@ +package aud.exam.prep.list; + +import aud.exam.prep.Pair; + +import java.util.Comparator; + +public class IterativeSingleListItemProcessor extends SingleListItemProcessor { + + @Override + public boolean find(SingleListItem list, T t) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public boolean findBinary(SingleListItem list, T t, Comparator cmp) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public boolean override(SingleListItem list, T from, T to) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public boolean overrideAll(SingleListItem list, T from, T to) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public boolean overrideAt(SingleListItem list, T to, int index) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public void insertInOrder(SingleListItem list, T t, Comparator cmp) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public boolean remove(SingleListItem list, T t) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public boolean removeAll(SingleListItem list, T t) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public boolean isAscending(SingleListItem list, Comparator cmp) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public T max(SingleListItem list, Comparator cmp) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public T secondMax(SingleListItem list, Comparator cmp) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public boolean isItemWiseLessOrEqual(SingleListItem a, SingleListItem b, Comparator cmp) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public boolean isItemWiseLess(SingleListItem a, SingleListItem b, Comparator cmp) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public boolean isLexSmaller(SingleListItem a, SingleListItem b, Comparator cmp) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public void exchangePairs(SingleListItem list) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public void rotateTriples(SingleListItem list) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public void removeEverySecond(SingleListItem list) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public void doubleAllKeys(SingleListItem list) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public SingleListItem rotateRight(SingleListItem list) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public SingleListItem rotateLeft(SingleListItem list) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public void removeDuplicates(SingleListItem list) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public SingleListItem invert(SingleListItem list) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public SingleListItem clone(SingleListItem list) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public SingleListItem alternate(SingleListItem a, SingleListItem b) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public SingleListItem merge(SingleListItem a, SingleListItem b, Comparator cmp) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public Pair, SingleListItem> divideAlternating(SingleListItem list) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public Pair, SingleListItem> divideAlternatingByRuns(SingleListItem list, Comparator cmp) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public Pair, SingleListItem> divideByPivot(SingleListItem list, T pivot, Comparator cmp) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public boolean check(SingleListItem list) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public SingleListItem create(Iterable iterable) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public Iterable iterate(SingleListItem list) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } +} \ No newline at end of file diff --git a/src/aud/exam/prep/list/RecursiveDoubleListItemProcessor.java b/src/aud/exam/prep/list/RecursiveDoubleListItemProcessor.java new file mode 100644 index 0000000..5a0a317 --- /dev/null +++ b/src/aud/exam/prep/list/RecursiveDoubleListItemProcessor.java @@ -0,0 +1,194 @@ +package aud.exam.prep.list; + +import aud.exam.prep.Pair; + +import java.util.Comparator; + +public class RecursiveDoubleListItemProcessor extends DoubleListItemProcessor { + + @Override + public boolean find(DoubleListItem list, T t) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public boolean findBinary(DoubleListItem list, T t, Comparator cmp) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public boolean override(DoubleListItem list, T from, T to) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public boolean overrideAll(DoubleListItem list, T from, T to) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public boolean overrideAt(DoubleListItem list, T to, int index) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public void insertInOrder(DoubleListItem list, T t, Comparator cmp) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public boolean remove(DoubleListItem list, T t) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public boolean removeAll(DoubleListItem list, T t) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public boolean isAscending(DoubleListItem list, Comparator cmp) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public T max(DoubleListItem list, Comparator cmp) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public T secondMax(DoubleListItem list, Comparator cmp) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public boolean isItemWiseLessOrEqual(DoubleListItem a, DoubleListItem b, Comparator cmp) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public boolean isItemWiseLess(DoubleListItem a, DoubleListItem b, Comparator cmp) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public boolean isLexSmaller(DoubleListItem a, DoubleListItem b, Comparator cmp) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public void exchangePairs(DoubleListItem list) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public void rotateTriples(DoubleListItem list) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public void removeEverySecond(DoubleListItem list) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public void doubleAllKeys(DoubleListItem list) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public DoubleListItem rotateRight(DoubleListItem list) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public DoubleListItem rotateLeft(DoubleListItem list) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public void removeDuplicates(DoubleListItem list) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public DoubleListItem invert(DoubleListItem list) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public DoubleListItem clone(DoubleListItem list) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public DoubleListItem alternate(DoubleListItem a, DoubleListItem b) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public DoubleListItem merge(DoubleListItem a, DoubleListItem b, Comparator cmp) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public Pair, DoubleListItem> divideAlternating(DoubleListItem list) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public Pair, DoubleListItem> divideAlternatingByRuns(DoubleListItem list, Comparator cmp) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public Pair, DoubleListItem> divideByPivot(DoubleListItem list, T pivot, Comparator cmp) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public boolean check(DoubleListItem list) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public DoubleListItem create(Iterable iterable) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public Iterable iterate(DoubleListItem list) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } +} \ No newline at end of file diff --git a/src/aud/exam/prep/list/RecursiveSingleListItemProcessor.java b/src/aud/exam/prep/list/RecursiveSingleListItemProcessor.java new file mode 100644 index 0000000..06a858b --- /dev/null +++ b/src/aud/exam/prep/list/RecursiveSingleListItemProcessor.java @@ -0,0 +1,194 @@ +package aud.exam.prep.list; + +import aud.exam.prep.Pair; + +import java.util.Comparator; + +public class RecursiveSingleListItemProcessor extends SingleListItemProcessor { + + @Override + public boolean find(SingleListItem list, T t) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public boolean findBinary(SingleListItem list, T t, Comparator cmp) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public boolean override(SingleListItem list, T from, T to) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public boolean overrideAll(SingleListItem list, T from, T to) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public boolean overrideAt(SingleListItem list, T to, int index) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public void insertInOrder(SingleListItem list, T t, Comparator cmp) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public boolean remove(SingleListItem list, T t) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public boolean removeAll(SingleListItem list, T t) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public boolean isAscending(SingleListItem list, Comparator cmp) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public T max(SingleListItem list, Comparator cmp) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public T secondMax(SingleListItem list, Comparator cmp) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public boolean isItemWiseLessOrEqual(SingleListItem a, SingleListItem b, Comparator cmp) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public boolean isItemWiseLess(SingleListItem a, SingleListItem b, Comparator cmp) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public boolean isLexSmaller(SingleListItem a, SingleListItem b, Comparator cmp) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public void exchangePairs(SingleListItem list) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public void rotateTriples(SingleListItem list) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public void removeEverySecond(SingleListItem list) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public void doubleAllKeys(SingleListItem list) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public SingleListItem rotateRight(SingleListItem list) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public SingleListItem rotateLeft(SingleListItem list) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public void removeDuplicates(SingleListItem list) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public SingleListItem invert(SingleListItem list) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public SingleListItem clone(SingleListItem list) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public SingleListItem alternate(SingleListItem a, SingleListItem b) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public SingleListItem merge(SingleListItem a, SingleListItem b, Comparator cmp) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public Pair, SingleListItem> divideAlternating(SingleListItem list) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public Pair, SingleListItem> divideAlternatingByRuns(SingleListItem list, Comparator cmp) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public Pair, SingleListItem> divideByPivot(SingleListItem list, T pivot, Comparator cmp) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public boolean check(SingleListItem list) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public SingleListItem create(Iterable iterable) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } + + @Override + public Iterable iterate(SingleListItem list) { + // TODO: Your training + throw new RuntimeException("unimplemented"); + } +} \ No newline at end of file diff --git a/src/aud/exam/prep/list/SingleListItemProcessor.java b/src/aud/exam/prep/list/SingleListItemProcessor.java new file mode 100644 index 0000000..0ead965 --- /dev/null +++ b/src/aud/exam/prep/list/SingleListItemProcessor.java @@ -0,0 +1,6 @@ +package aud.exam.prep.list; + +import aud.exam.prep.SequenceProcessor; + +abstract class SingleListItemProcessor implements SequenceProcessor> { +} \ No newline at end of file diff --git a/test/aud/exam/prep/list/IterativeDoubleListItemProcessorTest.java b/test/aud/exam/prep/list/IterativeDoubleListItemProcessorTest.java new file mode 100644 index 0000000..8f29fd8 --- /dev/null +++ b/test/aud/exam/prep/list/IterativeDoubleListItemProcessorTest.java @@ -0,0 +1,10 @@ +package aud.exam.prep.list; + +import aud.exam.prep.SequenceProcessorTest; + +class IterativeDoubleListItemProcessorTest extends SequenceProcessorTest> { + + protected IterativeDoubleListItemProcessorTest() { + super(new IterativeDoubleListItemProcessor<>()); + } +} \ No newline at end of file diff --git a/test/aud/exam/prep/list/IterativeSingleListItemProcessorTest.java b/test/aud/exam/prep/list/IterativeSingleListItemProcessorTest.java new file mode 100644 index 0000000..2279c80 --- /dev/null +++ b/test/aud/exam/prep/list/IterativeSingleListItemProcessorTest.java @@ -0,0 +1,10 @@ +package aud.exam.prep.list; + +import aud.exam.prep.SequenceProcessorTest; + +class IterativeSingleListItemProcessorTest extends SequenceProcessorTest> { + + protected IterativeSingleListItemProcessorTest() { + super(new IterativeSingleListItemProcessor<>()); + } +} \ No newline at end of file diff --git a/test/aud/exam/prep/list/RecursiveDoubleListItemProcessorTest.java b/test/aud/exam/prep/list/RecursiveDoubleListItemProcessorTest.java new file mode 100644 index 0000000..60ab264 --- /dev/null +++ b/test/aud/exam/prep/list/RecursiveDoubleListItemProcessorTest.java @@ -0,0 +1,10 @@ +package aud.exam.prep.list; + +import aud.exam.prep.SequenceProcessorTest; + +class RecursiveDoubleListItemProcessorTest extends SequenceProcessorTest> { + + protected RecursiveDoubleListItemProcessorTest() { + super(new RecursiveDoubleListItemProcessor<>()); + } +} \ No newline at end of file diff --git a/test/aud/exam/prep/list/RecursiveSingleListItemProcessorTest.java b/test/aud/exam/prep/list/RecursiveSingleListItemProcessorTest.java new file mode 100644 index 0000000..22b76ef --- /dev/null +++ b/test/aud/exam/prep/list/RecursiveSingleListItemProcessorTest.java @@ -0,0 +1,10 @@ +package aud.exam.prep.list; + +import aud.exam.prep.SequenceProcessorTest; + +class RecursiveSingleListItemProcessorTest extends SequenceProcessorTest> { + + protected RecursiveSingleListItemProcessorTest() { + super(new RecursiveSingleListItemProcessor<>()); + } +} \ No newline at end of file