Knowledge in data strcutures

graph theory book for engineering students

graph theory book for engineering students

graph theory book for engineering students

graph theory book for engineering students

Searching and sorting

Searching is the process of finding a given value position in a list of values. It decides whether a search key is present in the data or not. It is the algorithmic process of finding a particular item in a collection of items. It can be done on internal data structure or on external data structure.

data Structures Assignment

In computer science, a data structure is a data organization, management, and storage format that enables efficient access and modification. More precisely, a data structure is a collection of data values, the relationships among them, and the functions or operations that can be applied to the data.

Python Classes and Objects

Objects are an encapsulation of variables and functions into a single entity. Objects get their variables and functions from classes. Classes are essentially a template to create your objects.A very basic class would look something like this:script.py12345class MyClass: variable = "blah" def function(self): print("This is a message inside the class.")IPython ShellIn [1]: RunPowered by DataCampWe'll explain why you have to include that "self" as a parameter a little bit later. First, to assign the above class(template) to an object you would do the following:script.py1234567class MyClass: variable = "blah" def function(self): print("This is a message inside the class.")myobjectx = MyClass()IPython ShellIn [1]: RunPowered by DataCampNow the variable "myobjectx" holds an object of the class "MyClass" that contains the variable and the function defined within the class called "MyClass".Accessing Object VariablesTo access the variable inside of the newly created object "myobjectx" you would do the following:script.py123456789class MyClass: variable = "blah" def function(self): print("This is a message inside the class.")myobjectx = MyClass()myobjectx.variableIPython ShellIn [1]: RunPowered by DataCampSo for instance the below would output the string "blah":script.py123456789class MyClass: variable = "blah" def function(self): print("This is a message inside the class.")myobjectx = MyClass()print(myobjectx.variable)IPython ShellIn [1]: RunPowered by DataCampYou can create multiple different objects that are of the same class(have the same variables and functions defined). However, each object contains independent copies of the variables defined in the class. For instance, if we were to define another object with the "MyClass" class and then change the string in the variable above:script.py1234567891011121314class MyClass: variable = "blah" def function(self): print("This is a message inside the class.")myobjectx = MyClass()myobjecty = MyClass()myobjecty.variable = "yackity"# Then print out both valuesprint(myobjectx.variable)print(myobjecty.variable)IPython ShellIn [1]: RunPowered by DataCampAccessing Object FunctionsTo access a function inside of an object you use notation similar to accessing a variable:script.py123456789class MyClass: variable = "blah" def function(self): print("This is a message inside the class.")myobjectx = MyClass()myobjectx.function()IPython ShellIn [1]: RunPowered by DataCampThe above would print out the message, "This is a message inside the class."ExerciseWe have a class defined for vehicles. Create two new vehicles called car1 and car2. Set car1 to be a red convertible worth $60,000.00 with a name of Fer, and car2 to be a blue van named Jump worth $10,000.00.script.py1234567891011121314# define the Vehicle classclass Vehicle: name = "" kind = "car" color = "" value = 100.00 def description(self): desc_str = "%s is a %s %s worth $%.2f." % (self.name, self.color, self.kind, self.value) return desc_str# your code goes here# test codeprint(car1.description())print(car2.description())IPython ShellIn [1]: SolutionRun

most important question of bubble sort (dsa)

The notes contain a very important and very common question of bubble sort which is a ver y important topic of data structure and alogruthm

data structure and algorithm

This pdf contains notes of" types of file organization "

data structure and algorithm

Difference between b and b+ tree

data structure and alogrithm

THIS PDF CONTAINS IMPORTANT ASSIGNMENT BASED ON "GRAPH"

data structure and alogrithm

It contains notes of prorperties of b tree

data structure and alogrithm

VERY COMMONLY ASKED QUESTION OF DATA STRUCTURE AND ALGORITHM

data structure and alogrithm

NOTES OF "IMPLEMENTATION OF DFS AND BFS IN DATA STRUCTURE AND ALGORITHM