par de cosas que me faltaba commitear
This commit is contained in:
BIN
BasesDatosAplicada/tp2.pdf
Normal file
BIN
BasesDatosAplicada/tp2.pdf
Normal file
Binary file not shown.
40
Diploma/strategy.plant
Normal file
40
Diploma/strategy.plant
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
@startuml
|
||||||
|
class Program{
|
||||||
|
+ static void Main(string[] args)
|
||||||
|
}
|
||||||
|
|
||||||
|
abstract class SortStrategy
|
||||||
|
{
|
||||||
|
+ <<abstract>> void Sort(List<string> list);
|
||||||
|
}
|
||||||
|
|
||||||
|
class QuickSort extends SortStrategy
|
||||||
|
{
|
||||||
|
+ <<override>> void Sort(List<string> list)
|
||||||
|
}
|
||||||
|
|
||||||
|
class ShellSort extends SortStrategy
|
||||||
|
{
|
||||||
|
+ <<override>> void Sort(List<string> list)
|
||||||
|
}
|
||||||
|
|
||||||
|
class MergeSort extends SortStrategy
|
||||||
|
{
|
||||||
|
+ <<override>> void Sort(List<string> list)
|
||||||
|
}
|
||||||
|
|
||||||
|
class SortedList
|
||||||
|
{
|
||||||
|
- List<string> list = new List<string>();
|
||||||
|
- SortStrategy sortstrategy;
|
||||||
|
|
||||||
|
+ void SetSortStrategy(SortStrategy sortstrategy)
|
||||||
|
|
||||||
|
+ void Add(string name)
|
||||||
|
|
||||||
|
+ void Sort()
|
||||||
|
}
|
||||||
|
|
||||||
|
Program -l-> SortedList
|
||||||
|
SortedList "1..*" o--> "1" SortStrategy
|
||||||
|
@enduml
|
||||||
BIN
Diploma/strategy.png
Normal file
BIN
Diploma/strategy.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 36 KiB |
BIN
Discreta/entrega2.pdf
Normal file
BIN
Discreta/entrega2.pdf
Normal file
Binary file not shown.
Reference in New Issue
Block a user