
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Found 282 Articles for Data Structure Algorithms

1K+ Views
Basic conceptThe multidimensional binary search tree (abbreviated k-d tree) is defined as a data structure for storing multikey records. This structure has been implemented to solve a number of "geometric" problems in statistics and data analysis.A k-d tree (short for k-dimensional tree) is defined as a space-partitioning data structure for organizing points in a k-dimensional space. Data structure k-d trees are implemented for several applications, for example, searches involving a multidimensional search key (e.g. range searches and nearest neighbor searches). k-d trees are treated as a special case of binary space partitioning trees.Informal descriptionThe k-d tree is a binary tree ... Read More

721 Views
The rebalancing Algorithms can be performed in following way −Day-Stout-Warren AlgorithmWe can implement actually rebalance method using the Day-Stout-Warren Algorithm.It's linear in the number of nodes.The following is a presentation of the basic DSW Algorithm in pseudo code.A node is allocated called as the "pseudo-root" and make the tree's actual root as the right child of the pseudo-root.Call tree-to-vine function for converting tree to sorted linked list with the pseudo-root as its argument.Call vine-to-tree function for converting sorted linked list to tree again with the pseudo-root and the size (number of elements) of the tree as its argument.The tree's actual ... Read More

880 Views
We select a memory block first.Then we select local Bloom Filter within each block.It might cause imbalance between memory blocksThis filter is efficient, but poor false positive rate(FPR).At first instance, blocked Bloom filters should have the same FPR (False Positive Rate) as standard Bloom filters of the same size.Blocked Bloom Filter consists of a sequence of block b comparatively less than standard Bloom filters (Bloom filter blocks), each of which fits into one cache-line.Blocked Bloom filter scheme is differentiated from the partition schemes, where each bit is inserted into a different block.Blocked Bloom Filter is implemented in following ways −Bit ... Read More

636 Views
Counter SizeWe must select counters large enough for avoiding overflow.Size is 4 bits/counter suggested by Poisson approximation.Average load implementing k = (ln 2)m/n counters is ln 2.Probability a counter has load minimum 16:≈e-ln2(ln 2)16/16!≈6.78E-17We consider 4 bits/counter for comparisons.Counter OverflowWhen a counter does overflow, it may be arrived at its maximum value.This situation can later cause a false negative only if eventually the counter goes down to 0 when it should have remained at nonzero.The expected time to this situation is very large but is something we need to keep in mind for any application that does not permit false ... Read More

498 Views
Basic ConceptA Counting Bloom filter is defined as a generalized data structure of Bloom filter that is implemented to test whether a count number of a given element is less than a given threshold when a sequence of elements is given. As a generalized form, of Bloom filter there is possibility of false positive matches, but no chance of false negatives – in other words, a query returns either "possibly higher or equal than the threshold" or "definitely less than the threshold".Algorithm descriptionMost of the parameters, used under counting bloom filter, are defined same with Bloom filter, such as n, ... Read More

348 Views
There are three performance metrics for Bloom filters that can be traded off: computation or execution time (corresponds to the number k of hash functions), size of filter (corresponds to the number m of bits), and probability of error (corresponds to the false positive ratef = (1 − p)k )The Bloom filter (BF) introduces an error tolerance to enhance lookup performance and space efficiency. The Bloom filter either returns true or false. Thus, the result of Bloom filter is fallen under any one of the following classes: true positive, false positive, true negative, and false negative. Maximum number the Bloom ... Read More

3K+ Views
A Bloom filter is defined as a data structure designed to identify of a element’s presence in a set in a rapid and memory efficient manner.A specific data structure named as probabilistic data structure is implemented as bloom filter. This data structure helps us to identify that an element is either present or absent in a set.Bit Vector is implemented as a base data structure. Here's a small one we'll use to explain123456789101112131415Each empty cell in that table specifies a bit and the number below it its index or position. To append an element to the Bloom filter, we simply hash ... Read More

285 Views
Multiple choice hashing is named because it employs the implementation of multiple hash functions.On a high level, when there are multiple hash functions each item is mapped to multiple buckets and therefore the Algorithmdesigner has freedom to select in which of those the item would reside.It turns out that this freedom permits for Algorithms which obtain allocations that are much more balanced then that availed by implementing a single hash function.We will present the main Algorithmic ideas and the main mathematical tools that are implemented for proving bounds on the allocations these Algorithms produce.We will see that the analysis is ... Read More

756 Views
DefinitionDynamic perfect hashing is defined as a programming method for resolving collisions in a hash table data structure.ApplicationWhile more memory-intensive than its hash table counterparts, this method is ideal for situations where fast queries, insertions, and deletions must be performed on a large set of elements.ImplementationDietzfelbinger et al. explain a dynamic dictionary Algorithm that, when a set of m items is incrementally appended to the dictionary, membership queries always consume constant time and therefore O(1) worst-case time, the total storage needed is O(m) (linear), and O(1) expected amortized insertion and deletion time (amortized constant time).In the dynamic case, when a ... Read More

2K+ Views
Definition of Perfect HashingPerfect hashing is defined as a model of hashing in which any set of n elements can be stored in a hash table of equal size and can have lookups performed in constant time. It was specifically invented and discussed by Fredman, Komlos and Szemeredi (1984) and has therefore been nicknamed as "FKS Hashing".Definition of Static HashingStatic Hashing defines another form of the hashing problem which permits users to accomplish lookups on a finalized dictionary set (that means all objects in the dictionary are final as well as not changing).ApplicationSince static hashing needs that the database, its objects and ... Read More