Posts

Showing posts from June, 2020

Overview of 2 Dimensional array

Image
A two-dimensional array is an array of array.  For the best view, rotate your screen horizontally. For example, consider a sample time table. Here, the days are an array. Each day consists of an array within them. Thus it forms a 2-D array with 6 columns and 7 rows. The text entered in each box acts as an element. The advantages and disadvantages of a 2-dimensional array are the same as a 1-dimensional array as I mentioned in this blog- 1-D Array Overview . A major application of 2-dimensional array is a representation of matrices. Let us consider an array  arr  with 2 rows and 3 columns. 8    5    4 2    8    3 Usually, a 2-D array is used for storing information that is visualized as a grid and table form. However, in memory, it is not stored as a table like visualization. It stores by continuous memory either of the following order: 1)        Row major order- Here, elements of first rows are list first, followed by elements of the second row and so on.  8 5 4 2 8 3              arr(

Overview of One Dimensional Array

Image
Array: A data structure which stores homogenous data types in continuous memory allocation is known as an Array. It stored several related items using a single name. Different elements can be accessed using the index. Consider a cupboard in your local library. It has different sections for different genres of book. Each section can accommodate a specific number of books. Now consider the section of Mathematics wherein one would only find books on mathematics.  From the above figure, we can derive the following analogy with Array: Mathematics genre - data type width of a book- size of data type size of section- the size of the array colour of a book- data The index of memory starts at 0. While using C and C++ programming languages, the size of the array is fixed. The size of the array in Python, Java, Kotlin, JavaScript and PHP is not fixed. Applications of Array: To maintain a list of data.  For example: To search if a person has registered in a list of registered names. Sort the numbe

Techfest IIT Bombay Workshop Experience

Image
If you wish to enrol for any workshop or you have already enrolled, here are some guidelines which will help you to prepare for attending workshops at IIT Bombay's annual technical festival.  I went to the Android Application Development Workshop by Google at 2020 Techfest. So here are my observations. 1) The workshop was delivered by experienced Googlers. The experts were helpful and very knowledgable. They personally helped students who got errors in their code. They even stayed after the workshop got over to help enthusiastic students with their code. Flutter was taught very well by Ms Nikita Gandhi and Mr Deven Joshi. 2) The list of content and software were mailed to participants before 10 days. However, most of the participants didn't download them and hence it took a lot of time to start the workshop. 3) Internet at IIT Bombay was very slow (due to heavy traffic )for people to download things from.  So download basic requirements before going. And, take extra internet so