Skip to content

Commit 10e36b7

Browse files
authored
Merge pull request #134 from raj-rathod/rajesh
feat:<Selection sort> selection sort image add
2 parents 7152c93 + 1d899ff commit 10e36b7

File tree

7 files changed

+27
-27
lines changed

7 files changed

+27
-27
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<h1 class="text-center">Selection Sort</h1>
22
<div class="mt-md-4 mt-3" [innerHtml]="selectionSortMetaData.defination"></div>
3-
<div class="mt-md-4 mt-3" [innerHtml]="selectionSortMetaData.explainImage"></div>
43
<div class="mt-md-4 mt-3" [innerHtml]="selectionSortMetaData.properties"></div>
5-
<div class="mt-md-4 mt-3" [innerHtml]="selectionSortMetaData.flowChart"></div>
64
<div class="mt-md-4 mt-3" [innerHtml]="selectionSortMetaData.workingProcedure"></div>
5+
<div class="mt-md-4 mt-3 col-md-7" [innerHtml]="selectionSortMetaData.flowChart"></div>
6+
<div class="mt-md-4 mt-3 col-md-7" [innerHtml]="selectionSortMetaData.explainImage"></div>
77
<div class="mt-md-4 mt-3" [innerHtml]="selectionSortMetaData.applications"></div>
88
<div class="mt-md-4 mt-3" [innerHtml]="selectionSortMetaData.advantage"></div>
99
<div class="mt-md-4 mt-3" [innerHtml]="selectionSortMetaData.disadvantage"></div>

src/app/components/Algorithms/sorting/sorting-algorithm/sorting-algorithm.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ <h1 class="text-center">Sorting Algorithms</h1>
33
<div class="mt-md-4 mt-3" [innerHtml]="sortingMetaData.properties"></div>
44
<div class="mt-md-4 mt-3 d-flex align-items-center horizontal-scroll">
55
<ng-container *ngFor="let data of sortingType; let i = index">
6-
<div *ngIf="i !=0" class="box p-lg-2 p-1 px-lg-3 px-2 tab me-lg-4 me-3" [routerLink]="data.route">
6+
<div class="box p-lg-2 p-1 px-lg-3 px-2 tab me-lg-4 me-3" [routerLink]="data.route">
77
<p class="m-0">{{data.name}}</p>
88
</div>
99
</ng-container>

src/app/core/algorithms/sorting-meta-data.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ const selectionSortData = {
5858
Initially, the sorted part is empty and the unsorted part is the entire list. <br>
5959
The smallest element is selected from the unsorted array and swapped with the leftmost element, and that element becomes
6060
a part of the sorted array. This process continues moving unsorted array boundary by one element to the right.`,
61-
flowChart:"assets/ds-image/DSA-404.webp",
62-
explainImage:"assets/ds-image/DSA-404.webp",
61+
flowChart:"assets/ds-image/selection-sort-flowchart.jpg",
62+
explainImage:"assets/ds-image/selection-sort.jpg",
6363
workingProcedure:[
6464
'Initialize minimum value(minValue) to location 0.',
6565
'Traverse the array to find the minimum element in the array.',

src/app/core/meta-data/meta-data.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export const contact: string[] =[
5757

5858
export const pageMetaData = {
5959
home:{
60-
title:"Data Structures and Algorithms | Visualization",
60+
title:"Data Structures and Algorithms | DSA Visualization",
6161
description:`All the points of data structures and algorithms like as working approach, properties,
6262
operations, applications, advantages and disadvantages are well explained and visualize the operations
6363
for better understanding`,
@@ -116,7 +116,7 @@ export const pageMetaData = {
116116
Queue Disadvantages, Enqueue and Dequeue Operations`
117117
},
118118
linkedList:{
119-
title:"Linked List Operations and Visualization | Dsa Visualization",
119+
title:"Linked List Operations and Visualization | DSA Visualization",
120120
description:`What is the linked list, what is the use of the linked list, what is the single linked list,
121121
what is the use of the single linked list, what is the double linked list, what is the use of the double linked list,
122122
application of the linked list and advantages and disadvantages of the linked list`,

src/app/core/meta-data/router-meta-data.ts

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,10 @@ export const algorithms: RouterLinkData[] = [
8888
];
8989

9090
export const sorting: RouterLinkData[] = [
91-
{
92-
name: "Bubble Sort",
93-
route: "/algorithm/sorting/bubble-sort"
94-
},
91+
// {
92+
// name: "Bubble Sort",
93+
// route: "/algorithm/sorting/bubble-sort"
94+
// },
9595
{
9696
name: "Selection Sort",
9797
route: "/algorithm/sorting/selection-sort"
@@ -151,10 +151,10 @@ export const searchingLinks: RouterLinkData[] = [
151151
name: "Exponential Search",
152152
route: "/algorithm/searching/exponential-search"
153153
},
154-
{
155-
name: "Fibonacci Search",
156-
route: "/algorithm/searching/fibonacci-search"
157-
},
154+
// {
155+
// name: "Fibonacci Search",
156+
// route: "/algorithm/searching/fibonacci-search"
157+
// },
158158
];
159159

160160
export const divideAndConquerLinks: RouterLinkData[] = [
@@ -166,16 +166,16 @@ export const divideAndConquerLinks: RouterLinkData[] = [
166166
name: "Quick Sort",
167167
route: "/algorithm/sorting/quick-sort"
168168
},
169-
{
170-
name: "Strassen's Algorithm",
171-
route: "/algorithm/divide-and-conquer/strassen"
172-
},
173-
{
174-
name: "Closest Pair of Points",
175-
route: "/algorithm/divide-and-conquer/closest-pair-of-points"
176-
},
177-
{
178-
name: "Karatsuba Algorithm",
179-
route: "/algorithm/divide-and-conquer/karatsuba"
180-
}
169+
// {
170+
// name: "Strassen's Algorithm",
171+
// route: "/algorithm/divide-and-conquer/strassen"
172+
// },
173+
// {
174+
// name: "Closest Pair of Points",
175+
// route: "/algorithm/divide-and-conquer/closest-pair-of-points"
176+
// },
177+
// {
178+
// name: "Karatsuba Algorithm",
179+
// route: "/algorithm/divide-and-conquer/karatsuba"
180+
// }
181181
];
130 KB
Loading
129 KB
Loading

0 commit comments

Comments
 (0)