Introduction to Data Structures and Algorithms Before introducing data structures we should understand that computers do store, retrieve, and process a large amount of data. If the data is stored in well organized way on storage media and in computer's memory then it can be accessed quickly for processing that further reduces the latency and the user is provided fast response. Data structure introduction refers to a scheme for organizing data, or in other words a data structure is an arrangement of data in computer's memory in such a way that it could make the data quickly available to the processor for required calculations. A data structure should be seen as a logical concept that must address two fundamental concerns. First, how the data will be stored, and second, what operations will be performed on it? As data structure is a scheme for data organization so the functional definition of a data structure should be independent of its implementation. The functional defin...
Posts
Data Structures
- Get link
- X
- Other Apps
Introduction to Data Structures Data Structure is a way of collecting and organising data in such a way that we can perform operations on these data in an effective way. Data Structures is about rendering data elements in terms of some relationship, for better organization and storage. For example, we have data player's name "Virat" and age 26. Here "Virat" is of String data type and 26 is of integer data type. We can organize this data as a record like Player record. Now we can collect and store player's records in a file or database as a data structure. For example: "Dhoni" 30, "Gambhir" 31, "Sehwag" 33 In simple language, Data Structures are structures programmed to store ordered data, so that various operations can be performed on it easily. Basic types of Data Structures As we discussed above, anything that can store data can be called as a data strucure, hence Integer, Float, Boolean, Char etc, all are d...
In demand programming languages:
- Get link
- X
- Other Apps
The 9 Most In-Demand Programming Languages of 2016 Glassdoor recently published a report on the top 25 lucrative, in-demand jobs . More than half of the jobs listed are in tech and require programming skills. If you’re interested in a fast-growing and lucrative career, you might want to make learning to code next on your checklist! Next comes the hard part – deciding on the best programming language to learn. To help narrow things down, we compiled data from Indeed.com (database including current computer programmer jobs ). While this isn’t an extensive list, it does provide insight into the most in-demand programming languages sought after by employers. Breakdown of the 9 Most In-Demand Programming Languages 1. SQL It’s no surprise SQL (pronounced ‘sequel’) tops the job list since it can be found far and wide in various flavors. Database technologies such as MySQL, PostgreSQL and Microsoft SQL Server power big businesses, small businesses,...
Java - Decision Making
- Get link
- X
- Other Apps
Java - Decision Making Decision making structures have one or more conditions to be evaluated or tested by the program, along with a statement or statements that are to be executed if the condition is determined to be true, and optionally, other statements to be executed if the condition is determined to be false. Following is the general form of a typical decision making structure found in most of the programming languages − Java programming language provides following types of decision making statements. Click the following links to check their detail. Sr.No. Statement & Description 1 if statement An if statement consists of a boolean expression followed by one or more statements. 2 if...else statement An if statement can be followed by an optional else statement , which executes when the boolean expression is false. 3 nested if statement You can use one if or else if statement inside another if ...
Java loop control
- Get link
- X
- Other Apps
Java - Loop Control There may be a situation when you need to execute a block of code several number of times. In general, statements are executed sequentially: The first statement in a function is executed first, followed by the second, and so on. Programming languages provide various control structures that allow for more complicated execution paths. A loop statement allows us to execute a statement or group of statements multiple times and following is the general form of a loop statement in most of the programming languages − Java programming language provides the following types of loop to handle looping requirements. Click the following links to check their detail. Sr.No. Loop & Description 1 while loop Repeats a statement or group of statements while a given condition is true. It tests the condition before executing the loop body. 2 for loop Execute a sequence of statements multiple times and abbreviates the code that manages the loop vari...
Java Basic operators
- Get link
- X
- Other Apps
Java - Basic Operators Java provides a rich set of operators to manipulate variables. We can divide all the Java operators into the following groups − Arithmetic Operators Relational Operators Bitwise Operators Logical Operators Assignment Operators Misc Operators The Arithmetic Operators Arithmetic operators are used in mathematical expressions in the same way that they are used in algebra. The following table lists the arithmetic operators − Assume integer variable A holds 10 and variable B holds 20, then − Show Examples Operator Description Example + (Addition) Adds values on either side of the operator. A + B will give 30 - (Subtraction) Subtracts right-hand operand from left-hand operand. A - B will give -10 * (Multiplication) Multiplies values on either side of the operator. A * B will give 200 / (Division) Divides left-hand operand by right-hand operand. B / A will give 2 % (Modulus) Divides left-hand operand by right-hand operand and returns remai...
Java variable types
- Get link
- X
- Other Apps
Java - Variable Types A variable provides us with named storage that our programs can manipulate. Each variable in Java has a specific type, which determines the size and layout of the variable's memory; the range of values that can be stored within that memory; and the set of operations that can be applied to the variable. You must declare all variables before they can be used. Following is the basic form of a variable declaration − data type variable [ = value][, variable [ = value] ...] ; Here data type is one of Java's datatypes and variable is the name of the variable. To declare more than one variable of the specified type, you can use a comma-separated list. Following are valid examples of variable declaration and initialization in Java − Example int a , b , c ; // Declares three ints, a, b, and c. int a = 10 , b = 10 ; // Example of initialization byte B = 22 ; // initializes a byte type variable B. doub...