updating class diagram
This commit is contained in:
@@ -1,15 +1,38 @@
|
||||
```mermaid
|
||||
classDiagram
|
||||
Sorter <|-- BubbleSorter
|
||||
Sorter <|-- QuickSorter
|
||||
Sorter <|-- QuickSorter
|
||||
Sorter <|-- CountingoSorter
|
||||
Sorter <|-- MergeSorter
|
||||
Sorter <|-- InsertionSorter
|
||||
Sorter <|-- SelectionSorter
|
||||
Sorter <|-- BubbleSorter
|
||||
|
||||
class Sorter{
|
||||
<<abstract>>
|
||||
+SortResult measuredSort()
|
||||
#sort() void
|
||||
#String sortType
|
||||
#Integer[] numbers
|
||||
#String writesUsed
|
||||
#String comparisonsUsed
|
||||
#compare() int
|
||||
#swap() void
|
||||
}
|
||||
|
||||
class BubbleSorter{
|
||||
#sort()
|
||||
}
|
||||
|
||||
class Sorter{
|
||||
<<abstract>>
|
||||
# String sortType
|
||||
# Integer[] numbers
|
||||
*sort()*
|
||||
class QuickSorter{
|
||||
#sort() void
|
||||
-quickSort()
|
||||
-partition()
|
||||
}
|
||||
class BubbleSorter{
|
||||
void sort()
|
||||
|
||||
class InsertionSorter{
|
||||
#sort() void
|
||||
}
|
||||
|
||||
class RandomNumberFileMaker
|
||||
|
||||
```
|
||||
Reference in New Issue
Block a user