|
13 | 13 | - Arrays are used to implement other data structures, such as heaps, hash tables, deques, queues, stacks, strings, and VLists.
|
14 | 14 | - Below is the representation,
|
15 | 15 |
|
16 | | -<img width="426" alt="array" src="https://cloud.githubusercontent.com/assets/3439029/18146774/600b0d4a-6f86-11e6-8005-3f6da1afc95f.png"> |
| 16 | +<img width="426" alt="arrays-1" src="https://user-images.githubusercontent.com/3439029/32186457-5b7d71d2-bd5f-11e7-8ab8-5ee19f34ff6b.png"> |
17 | 17 | **************************************
|
18 | 18 |
|
19 | 19 | **Defining Arrays**
|
@@ -63,13 +63,13 @@ int[][] a = new int[3][4]; // Creates a matrix with 3 rows and 4 columns
|
63 | 63 | ```
|
64 | 64 | Below is the representation of multi dimensional array
|
65 | 65 |
|
66 | | - |
| 66 | + |
67 | 67 |
|
68 | 68 | There are two orders that can exist in a multidimensional array, i.e
|
69 | 69 | _Row major_ and _Column major_
|
70 | 70 | ex, consider below matrix
|
71 | 71 |
|
72 | | -<img width="185" alt="screen shot 2016年08月31日 at 9 50 23 pm" src="https://cloud.githubusercontent.com/assets/3439029/18155706/04e2045c-6fc5-11e6-847e-8d8f406de844.png"> |
| 72 | +<img width="185" alt="arrays-3" src="https://user-images.githubusercontent.com/3439029/32186517-7c5991ba-bd5f-11e7-9c82-f369b3590492.png"> |
73 | 73 |
|
74 | 74 | Here, in row-major layout, elements can be represented as **[1,2,3,4,5,6,7,8,9]** whereas in column-major layout, elements can be represented as **[1,4,7,2,5,8,3,6,9]**
|
75 | 75 |
|
@@ -158,4 +158,4 @@ Below operations on Arrays are implemented [here](../Arrays/BasicOperations.java
|
158 | 158 |
|
159 | 159 | **Comparison with other Data Structures**
|
160 | 160 |
|
161 | | -<img width="972" alt="screen shot 2016年09月01日 at 4 21 12 pm" src="https://cloud.githubusercontent.com/assets/3439029/18187642/2d5f48cc-7060-11e6-8a59-4affd3fdd885.png"> |
| 161 | +<img width="972" alt="arrays-4" src="https://user-images.githubusercontent.com/3439029/32186532-87cb9778-bd5f-11e7-86de-179d914b0d80.png"> |
0 commit comments