Skip to content

Commit dd7411d

Browse files
authored
Merge pull request #151 from raj-rathod/rajesh
feat:<Meta Data> #147 meta data add for each page
2 parents 3ed055e + 9d1c841 commit dd7411d

File tree

3 files changed

+134
-14
lines changed

3 files changed

+134
-14
lines changed

src/app/components/Algorithms/searching/searching-routing.module.ts

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,36 @@ import { InterpolationSearchComponent } from './interpolation-search/interpolati
77
import { JumpSearchComponent } from './jump-search/jump-search.component';
88
import { LinearSearchComponent } from './linear-search/linear-search.component';
99
import { SearchingAlgorithmComponent } from './searching-algorithm/searching-algorithm.component';
10+
import { pageMetaData } from 'src/app/core/meta-data/meta-data';
1011

1112
const routes: Routes = [
1213
{
1314
path:'', component: SearchingAlgorithmComponent
1415
},
1516
{
16-
path: 'linear-search', component: LinearSearchComponent
17+
path: 'linear-search',
18+
data: pageMetaData.linearSearch,
19+
component: LinearSearchComponent
1720
},
1821
{
19-
path: 'binary-search', component: BinarySearchComponent
22+
path: 'binary-search',
23+
data: pageMetaData.binarySearch,
24+
component: BinarySearchComponent
2025
},
2126
{
22-
path: 'jump-search', component: JumpSearchComponent
27+
path: 'jump-search',
28+
data: pageMetaData.jumpSearch,
29+
component: JumpSearchComponent
2330
},
2431
{
25-
path: 'interpolation-search', component: InterpolationSearchComponent
32+
path: 'interpolation-search',
33+
data: pageMetaData.interpolationSearch,
34+
component: InterpolationSearchComponent
2635
},
2736
{
28-
path: 'exponential-search', component: ExponentialSearchComponent
37+
path: 'exponential-search',
38+
data: pageMetaData.exponentialSearch,
39+
component: ExponentialSearchComponent
2940
},
3041
{
3142
path: 'fibonacci-search', component: FibonacciSearchComponent

src/app/components/Algorithms/sorting/sorting-routing.module.ts

Lines changed: 25 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { RadixSortComponent } from './radix-sort/radix-sort.component';
1010
import { SelectionSortComponent } from './selection-sort/selection-sort.component';
1111
import { ShellSortComponent } from './shell-sort/shell-sort.component';
1212
import { SortingAlgorithmComponent } from './sorting-algorithm/sorting-algorithm.component';
13+
import { pageMetaData } from 'src/app/core/meta-data/meta-data';
1314

1415
const routes: Routes = [
1516
{
@@ -19,28 +20,44 @@ const routes: Routes = [
1920
path: 'bubble-sort', component: BubbleSortComponent
2021
},
2122
{
22-
path: 'selection-sort', component: SelectionSortComponent
23+
path: 'selection-sort',
24+
data: pageMetaData.selectionSort,
25+
component: SelectionSortComponent
2326
},
2427
{
25-
path: 'insertion-sort', component: InsertionSortComponent
28+
path: 'insertion-sort',
29+
data: pageMetaData.insertionSort,
30+
component: InsertionSortComponent
2631
},
2732
{
28-
path: 'merge-sort', component: MergeSortComponent
33+
path: 'merge-sort',
34+
data: pageMetaData.mergeSort,
35+
component: MergeSortComponent
2936
},
3037
{
31-
path: 'quick-sort', component: QuickSortComponent
38+
path: 'quick-sort',
39+
data: pageMetaData.quickSort,
40+
component: QuickSortComponent
3241
},
3342
{
34-
path: 'counting-sort', component: CountingSortComponent
43+
path: 'counting-sort',
44+
data: pageMetaData.countingSort,
45+
component: CountingSortComponent
3546
},
3647
{
37-
path: 'radix-sort', component: RadixSortComponent
48+
path: 'radix-sort',
49+
data: pageMetaData.radixSort,
50+
component: RadixSortComponent
3851
},
3952
{
40-
path: 'bucket-sort', component: BucketSortComponent
53+
path: 'bucket-sort',
54+
data: pageMetaData.bucketSort,
55+
component: BucketSortComponent
4156
},
4257
{
43-
path: 'shell-sort', component: ShellSortComponent
58+
path: 'shell-sort',
59+
data: pageMetaData.shellSort,
60+
component: ShellSortComponent
4461
}
4562
];
4663

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

Lines changed: 93 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,5 +198,97 @@ export const pageMetaData = {
198198
description:`What is the recursion, properties of the recursion, types of the recursion, What is the role
199199
of the stack in recursion, what is the call stack`,
200200
keywords:`Recursion, Recursion Algorithms, Call Stack, Recursion Types, Application of the recursion`
201-
}
201+
},
202+
selectionSort: {
203+
title: `Selection Sort | Selection Sort Algorithms | Selection Sort Flowcahrt | DSA Visualization`,
204+
description:`What is the selection sort, flowchat and algorithm of selection sort, working procedure and visualization
205+
of selection sort, properties and applications of selection sort and time complexity`,
206+
keywords:`Selection Sort, Selection Sort Algorithms, Selection Sort Flowchart, Selection Sort time complexity,
207+
Selection Sort Advantage and Disadvantage`
208+
},
209+
insertionSort: {
210+
title: `Insertion Sort | Insertion Sort Algorithms | Insertion Sort Flowcahrt | DSA Visualization`,
211+
description:`What is the Insertion sort, flowchat and algorithm of Insertion sort, working procedure and visualization
212+
of Insertion sort, properties and applications of Insertion sort and time complexity`,
213+
keywords:`Insertion Sort, Insertion Sort Algorithms, Insertion Sort Flowchart, Insertion Sort time complexity,
214+
Insertion Sort Advantage and Disadvantage`
215+
},
216+
mergeSort: {
217+
title: `Merge Sort | Merge Sort Algorithms | Merge Sort Flowcahrt | DSA Visualization`,
218+
description:`What is the Merge sort, flowchat and algorithm of Merge sort, working procedure and visualization
219+
of Merge sort, properties and applications of Merge sort and time complexity`,
220+
keywords:`Merge Sort, Merge Sort Algorithms, Merge Sort Flowchart, Merge Sort time complexity,
221+
Merge Sort Advantage and Disadvantage`
222+
},
223+
quickSort: {
224+
title: `Quick Sort | Quick Sort Algorithms | Quick Sort Flowcahrt | DSA Visualization`,
225+
description:`What is the Quick sort, flowchat and algorithm of Quick sort, working procedure and visualization
226+
of Quick sort, properties and applications of Quick sort and time complexity`,
227+
keywords:`Quick Sort, Quick Sort Algorithms, Quick Sort Flowchart, Quick Sort time complexity,
228+
Quick Sort Advantage and Disadvantage`
229+
},
230+
countingSort: {
231+
title: `Counting Sort | Counting Sort Algorithms | Counting Sort Flowcahrt | DSA Visualization`,
232+
description:`What is the Counting sort, flowchat and algorithm of Counting sort, working procedure and visualization
233+
of Counting sort, properties and applications of Counting sort and time complexity`,
234+
keywords:`Counting Sort, Counting Sort Algorithms, Counting Sort Flowchart, Counting Sort time complexity,
235+
Counting Sort Advantage and Disadvantage`
236+
},
237+
radixSort: {
238+
title: `Radix Sort | Radix Sort Algorithms | Radix Sort Flowcahrt | DSA Visualization`,
239+
description:`What is the Radix sort, flowchat and algorithm of Radix sort, working procedure and visualization
240+
of Radix sort, properties and applications of Radix sort and time complexity`,
241+
keywords:`Radix Sort, Radix Sort Algorithms, Radix Sort Flowchart, Radix Sort time complexity,
242+
Radix Sort Advantage and Disadvantage`
243+
},
244+
bucketSort: {
245+
title: `Bucket Sort | Bucket Sort Algorithms | Bucket Sort Flowcahrt | DSA Visualization`,
246+
description:`What is the Bucket sort, flowchat and algorithm of Bucket sort, working procedure and visualization
247+
of Bucket sort, properties and applications of Bucket sort and time complexity`,
248+
keywords:`Bucket Sort, Bucket Sort Algorithms, Bucket Sort Flowchart, Bucket Sort time complexity,
249+
Bucket Sort Advantage and Disadvantage`
250+
},
251+
shellSort: {
252+
title: `Shell Sort | Shell Sort Algorithms | Shell Sort Flowcahrt | DSA Visualization`,
253+
description:`What is the Shell sort, flowchat and algorithm of Shell sort, working procedure and visualization
254+
of Shell sort, properties and applications of Shell sort and time complexity`,
255+
keywords:`Shell Sort, Shell Sort Algorithms, Shell Sort Flowchart, Shell Sort time complexity,
256+
Shell Sort Advantage and Disadvantage`
257+
},
258+
linearSearch: {
259+
title: `Linear Search | Linear Search Algorithms | Linear Search Flowcahrt | DSA Visualization`,
260+
description:`What is the Linear Search, flowchat and algorithm of Linear Search, working procedure and visualization
261+
of Linear Search, properties and applications of Linear Search and time complexity`,
262+
keywords:`Linear Search, Linear Search Algorithms, Linear Search Flowchart, Linear Search time complexity,
263+
Linear Search Advantage and Disadvantage`
264+
},
265+
binarySearch: {
266+
title: `Binary Search | Binary Search Algorithms | Binary Search Flowcahrt | DSA Visualization`,
267+
description:`What is the Binary Search, flowchat and algorithm of Binary Search, working procedure and visualization
268+
of Binary Search, properties and applications of Binary Search and time complexity`,
269+
keywords:`Binary Search, Binary Search Algorithms, Binary Search Flowchart, Binary Search time complexity,
270+
Binary Search Advantage and Disadvantage`
271+
},
272+
jumpSearch: {
273+
title: `Jump Search | Jump Search Algorithms | Jump Search Flowcahrt | DSA Visualization`,
274+
description:`What is the Jump Search, flowchat and algorithm of Jump Search, working procedure and visualization
275+
of Jump Search, properties and applications of Jump Search and time complexity`,
276+
keywords:`Jump Search, Jump Search Algorithms, Jump Search Flowchart, Jump Search time complexity,
277+
Jump Search Advantage and Disadvantage`
278+
},
279+
interpolationSearch: {
280+
title: `Interpolation Search | Interpolation Search Algorithms | Interpolation Search Flowcahrt | DSA Visualization`,
281+
description:`What is the Interpolation Search, flowchat and algorithm of Interpolation Search, working procedure and visualization
282+
of Interpolation Search, properties and applications of Interpolation Search and time complexity`,
283+
keywords:`Interpolation Search, Interpolation Search Algorithms, Interpolation Search Flowchart, Interpolation Search time complexity,
284+
Interpolation Search Advantage and Disadvantage`
285+
},
286+
exponentialSearch: {
287+
title: `Exponential Search | Exponential Search Algorithms | Exponential Search Flowcahrt | DSA Visualization`,
288+
description:`What is the Exponential Search, flowchat and algorithm of Exponential Search, working procedure and visualization
289+
of Exponential Search, properties and applications of Exponential Search and time complexity`,
290+
keywords:`Exponential Search, Exponential Search Algorithms, Exponential Search Flowchart, Exponential Search time complexity,
291+
Exponential Search Advantage and Disadvantage`
292+
},
293+
202294
}

0 commit comments

Comments
 (0)