answersLogoWhite

0

What is non linear array?

Updated: 8/11/2023
User Avatar

Wiki User

10y ago

Best Answer
What is ARRAY, explain its typesARRAY: -

It is the combination of same data type or if same data is needed more then none time then we use array.

Types Normally there are two types of array.

(1) One dimensional array

(2) Two dimensional array

(1) One dimensional array: -

This array is in form a list (vertical\Horizontal) the data input output or process in one dimensional array with the help of loop.

The syntax of one dimensional array will be as:

Array name [strength]

For example

A [5];

The structure of above syntax will be as:

A (0)

A (1)

A (2)

A (3)

A (4)

(2) Two dimensional array: -

Two dimensional array is also called a table because it consist of rows and columns. The syntax of two dimensional arrays will be as:

Data type array name [rows] [columns]

For example

Int [3] [2];

The structure of above syntax will be as:

A [0] [0] A [0] [1]

A [1] [0] A [1] [1]

A [2] [0] A [2] [1]

The data input output are process in this array with the help of nested loop.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

11y ago

All arrays are linear data structures, as are all lists. Arrays are linear because multiple elements are allocated in contiguous memory. If the array is a pointer array, only the pointer array need be contiguous; the data being pointed at can reside anywhere in memory, whether contiguous or not (you might use a separate pointer array to indirectly alter the order of elements in another array). Large and dynamic multi-dimensional arrays are typically allocated as a large array of pointers each of which points to a small array of data elements. For instance, a four-dimensional array might be allocated as a contiguous three-dimensional array of pointers, each of which points to a separately allocated one-dimensional array of data elements. Although this uses more memory overall to cater for all the pointer variables, allocating separate memory to each one-dimensional array is more likely to succeed than if all the elements were allocated as a contiguous multi-dimensional array, especially if the individual data elements are quite large.

This answer is:
User Avatar

User Avatar

Wiki User

10y ago

A linear array is a not a non-linear array

This answer is:
User Avatar

User Avatar

Wiki User

11y ago

depends on the number of elements and their datatype present in the array.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is non linear array?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What is Linear and non linear list in data structure?

Linear : Traversal is linear .. ex: array,linked lists,stacks,queues NoN-linear: Traversal is not linear.. ex:trees,graphs imagine the situation of searching of particular element..in above scenarious..then u will understand easily.. Linear : Traversal is linear .. ex: array,linked lists,stacks,queues NoN-linear: Traversal is not linear.. ex:trees,graphs imagine the situation of searching of particular element..in above scenarious..then u will understand easily.. Linear : Traversal is linear .. ex: array,linked lists,stacks,queues NoN-linear: Traversal is not linear.. ex:trees,graphs imagine the situation of searching of particular element..in above scenarious..then u will understand easily..


What is linear data structure?

when elements are accesed or placed in contiguous memory location yhen data structure is known as linear data structure. stacks, arrays, queues and linklists are example of data structure. in non-linear data structure element are not placed in sequential manner. trees, graph are the ex. of non-linear data structure.


Is Array a linear data structure?

Conceptually, an array is a fixed size collection. However, a "ragged" array is not a linear one, nor a "matrix". Those 2 maybe thought of an array of arrays, ragged ones are arrays with different lengths, while matrices are arrays of the same length. Depends on the context of the question, an array is linear itself, regardless what kind of elements it contains. But there exists some arrays (I used math term on purposes) that are not "linear" (the ragged, the matrix, the 3-dimensional, 4-, etc.), thus, NOT all Arrays are Linear.


What is the main reason behind linked-list?

Linear list for example is array, linked list, stack, ... It is called linear because all elements in those data structures are in linear sequence. We have first and the last elements in the list. If there is N elements in list, we know that all elements are in such sequence na, na+1. Non-linear structures would be trees and graphs.


What is the simplest search technique to use to find an item in an array?

Linear search

Related questions

What is Linear and non linear list in data structure?

Linear : Traversal is linear .. ex: array,linked lists,stacks,queues NoN-linear: Traversal is not linear.. ex:trees,graphs imagine the situation of searching of particular element..in above scenarious..then u will understand easily.. Linear : Traversal is linear .. ex: array,linked lists,stacks,queues NoN-linear: Traversal is not linear.. ex:trees,graphs imagine the situation of searching of particular element..in above scenarious..then u will understand easily.. Linear : Traversal is linear .. ex: array,linked lists,stacks,queues NoN-linear: Traversal is not linear.. ex:trees,graphs imagine the situation of searching of particular element..in above scenarious..then u will understand easily..


What is linear data structure?

when elements are accesed or placed in contiguous memory location yhen data structure is known as linear data structure. stacks, arrays, queues and linklists are example of data structure. in non-linear data structure element are not placed in sequential manner. trees, graph are the ex. of non-linear data structure.


Is inductor linear or non linear?

non linear


Is planning linear or nonlinear?

Usually non-linear.Usually non-linear.Usually non-linear.Usually non-linear.


What is the running time of a linear search of an array?

Running time of a linear search is O(n)


What are linear and non linear text?

Linear means in order Non-Linear means Organic


Is a circle non-linear?

No, but it is non-linear.


Explain linear search with an example?

Sequential search of an object with in an array of objects is called as linear search.


What do an array and a stack have in common?

Both are linear data structures.


Will the plotted points 00 39 636 981 be linear or non linear?

Non-linear.


Is Array a linear data structure?

Conceptually, an array is a fixed size collection. However, a "ragged" array is not a linear one, nor a "matrix". Those 2 maybe thought of an array of arrays, ragged ones are arrays with different lengths, while matrices are arrays of the same length. Depends on the context of the question, an array is linear itself, regardless what kind of elements it contains. But there exists some arrays (I used math term on purposes) that are not "linear" (the ragged, the matrix, the 3-dimensional, 4-, etc.), thus, NOT all Arrays are Linear.


What is a non-example of linear?

It is possible to give an example of non-linear, but I have no idea what a non-example is. Is a non-example of linear a curve. That would be my first thought but not sure