Skip to main content

Application of trees

 Some Applications of Trees:

  1. Trees implement hierarchical structures in computer systems like directories and file systems.
  2. Trees are also used to implement the navigation structure of a website.
  3. We can generate code like Huffman's code using Trees.
  4. Trees are also helpful in decision-making in Gaming applications.
  5. Trees are responsible for implementing priority queues for priority-based OS scheduling functions.
  6. Trees are also responsible for parsing expressions and statements in the compilers of different programming languages.
  7. We can use Trees to store data keys for indexing for Database Management System (DBMS).
  8. Spanning Trees allows us to route decisions in Computer and Communications Networks.
  9. Trees are also used in the path-finding algorithm implemented in Artificial Intelligence (AI), Robotics, and Video Games Applications.

Comments

Popular posts from this blog

Service install on window system

 If we have to install service make sure,  .interframework install already. Goto folder like:-  C:\Windows\Microsoft.NET\Framework\v2.0.50727  C:\Windows\Microsoft.NET\Framework\ v2.0.50727 (Note: version folder can be change as the version change.) Open command prompt by  writing the "cmd" in the box of file/folder location shoes Run the command : "installUtil.exe pathofexeofthe service"

Program to find the number of 1's bit in a number

#include <bits/stdc++.h> using namespace std ; // this is the program to find the number of 1's bit in a number int count1nsBit ( int n ) {     int count = 0 ;     while ( n )     {         n = n & n - 1 ;         count ++ ;     }     return count ; } int main () {     int n ;     cin >> n ;     cout << count1nsBit ( n );     return 0 ; } /* input an output tast are comments */

Array Data Structure