Unit 3: Making Decisions and Repeating Yourself

  Conditional Statements Conditional statements are used to perform different actions based on different conditions. In PHP we have the following conditional statements: if statement – use this statement to execute some code only if a specified condition is true if..else statement – use this statement to execute some code if a condition is true […]

Continue Reading

Array

Sorting an Array Ordering data in an increasing or decreasing fashion. 1) Sort: Sorting an index array in ascending order. <?php $num=array(2,5,3,4,1); sort($num); $length=count($num); for($i=0;$i<$length;$i++) { echo $num[$i]; echo “<br>”; } ?> 2) rsort: Sorting an index array in descending order. <?php $num=array(2,5,3,4,1); rsort($num); $length=count($num); for($i=0;$i<$length;$i++) { echo $num[$i]; echo “<br>”; } ?> 3) asort: […]

Continue Reading

Unit 9:Hashing

Hashing is an approach to searching, which calculates the position of the key in the table based on the value of the key.It is an efficient technique in which key is placed in direct accessible address for rapid search.When the key is known, the position in the table can be accessed directly, without making any […]

Continue Reading

Unit 8: SORTING

Sorting refers to the operation or technique of arranging and rearranging sets of data in some specific order. A collection of records called a list where every record has one or more fields. The fields which contain a unique value for each record is termed as the key field. For example, a phone number directory can […]

Continue Reading

unit 2 Linked List

What Is Linked List? (2002 , 2007,2011) Linked list is one in which all nodes are linked together .Each node contains two parts. Data contains elements .  Next/Link contains address of next node . Structure of singly linked list The head always points to the first node .  All nodes are connected to each other […]

Continue Reading

unit 1 Complexity analysis

Asymptotic Notations Asymptotic notation is useful describe the running time of the algorithm. Asymptotic notations give time complexity as “fastest possible”, “slowest possible” or “average time”. Asymptotic notation is useful because it allows us to concentrate on the main factor determining a functions growth. Following are commonly used asymptotic notations used in calculating running time […]

Continue Reading

Unit 2: Entity-Relationship Model

  What is the ER Model? The ER or (Entity Relational Model) is a high-level conceptual data model diagram. Entity-Relation model is based on the notion of real-world entities and the relationship between them. ER modeling helps you to analyze data requirements systematically to produce a well-designed database. So, it is considered a best practice […]

Continue Reading