Assalam and Hi to everyone, today i would like to share about Parallel Distributed Processing(PDP)
so, the drawing picture will tell you some of information about the PDP. :)
This blog is for students of TCS 4063: Parallel and Distributed Computing of UniSZA. This is for the implementation of Objective Based Education (OBE), & Blended Learning.
bool IsFirstElementNull(String[] strings) { if(strings[0] == null) { return true; } return false; }
for
loop and the function would return early, but Big O notation will always assume the upper limit where the algorithm will perform the maximum number of iterations.bool ContainsValue(String[] strings, String value) { for(int i = 0; i < strings.Length; i++) { if(strings[i] == value) { return true; } } return false; }
bool ContainsDuplicates(String[] strings) { for(int i = 0; i < strings.Length; i++) { for(int j = 0; j < strings.Length; j++) { if(i == j) // Don't compare with self { continue; } if(strings[i] == strings[j]) { return true; } } } return false; }
|
BSD
|
LINUX
|
Licenses
|
The BSD license does not require that you make sure the next person
who uses (or modifies your code) makes that code available.
|
Linux operating system is licensed under The GPL gives you the right
to use the software any way you want, but you MUST ensure the source code is
available to the next person who uses it (or your variation of it).
|
Control
|
The BSD code is not "controlled" by any one user
|
Linux kernel is mostly controlled by Linus Torvalds (the creator of
Linux),
|
UNIX-like
|
the BSDs are much more similar to UNIX because they are, in fact,
direct derivatives of traditional UNIX.
|
Linux, on the other hand, was a newly created OS loosely based on a
UNIX derivative (Minix, to be exact).
|
Kernel vs OS
|
The BSD project maintains the entire operating system.
|
The Linux project focuses primarily on the kernel alone.
|
Upgrades
|
Upgrade your entire base system to the most recent release by issuing
a single command. Or you can download the sources to whatever build you want,
unpack them, and build them as you would any application.
|
upgrade a system by using the built-in package management system. The
former updates only the base system; the latter will upgrade the entire
installation.
|
3, 2, 4, 2, 3, 5
. We start with an array of 5 counters set to zero.0 | 1 | 2 | 3 | 4 | 5 |
0 | 0 | 0 | 0 | 0 | 0 |
0 | 1 | 2 | 3 | 4 | 5 |
0 | 0 | 2 | 2 | 1 | 1 |
2 2 3 3 4 5
.void bubbleSort(int ar[]){for (int i = (ar.length - 1); i >= 0; i--){ for (int j = 1; j ≤ i; j++) {int temp = ar[j-1];if (ar[j-1] > ar[j]) { ar[j-1] = ar[j];} } } }ar[j] = temp;
7, 5, 2, 4, 3, 95, 7, 2, 4, 3, 95, 2, 7, 4, 3, 95, 2, 4, 7, 3, 95, 2, 4, 3, 7, 95, 2, 4, 3, 7, 9
void selectionSort(int[] ar){for (int i = 0; i ‹ ar.length-1; i++){ int min = i;for (int j = i+1; j ‹ ar.length; j++)if (ar[j] ‹ ar[min]) min = j; int temp = ar[i];} }ar[i] = ar[min];ar[min] = temp;
29, 64, 73, 34, 20,20, 64, 73, 34, 29,20, 29, 73, 34, 6420, 29, 34, 73, 6420, 29, 34, 64, 73
void insertionSort(int[] ar){for (int i=1; i ‹ ar.length; i++){while (j > 0 && ar[j-1] > index)int index = ar[i]; int j = i;j--;{ ar[j] = ar[j-1]; }} }ar[j] = index;
29, 20, 73, 34, 6429, 20, 73, 34, 6420, 29, 73, 34, 6420, 29, 73, 34, 6420, 29, 34, 73, 6420, 29, 34, 64, 73
27 10 12 25 34 16 15 31
27 10 12 25 34 16 15 31
27 10 12 25 34 16 15 31
27 10 12 25 34 16 15 31
10 27 12 25 16 34 15 31
10 12 25 27 15 16 31 34
10 12 15 16 25 27 31 34