Actually, people do use k-ary trees for arbitrary k.
This is, however, a tradeoff.
To find an element in a k-ary tree, you need around k*ln(N)/ln(k) operations (remember the change-of-base formula). The larger your k is, the more overall operations you need.
The logical extension of what you are saying is “why don’t people use an N-ary tree for N data elements?”. Which, of course, would be an array.
Related Contents:
- Skip List vs. Binary Search Tree
- Find kth smallest element in a binary search tree in Optimum way
- B-tree faster than AVL or RedBlack-Tree? [closed]
- The best way to calculate the height in a binary search tree? (balancing an AVL-tree)
- Check if a binary tree is a mirror image or symmetric
- How to implement a queue using two stacks?
- What is the difference between tree depth and height?
- How to find the lowest common ancestor of two nodes in any binary tree?
- How Do I Choose Between a Hash Table and a Trie (Prefix Tree)?
- How to create the most compact mapping n → isprime(n) up to a limit N?
- Red black tree over avl tree
- What is the advantage to using Bloom filters?
- How to implement a binary tree?
- design a stack such that getMinimum( ) should be O(1)
- How to determine if binary tree is balanced?
- Check if two linked lists merge. If so, where?
- Why does Dijkstra’s algorithm use decrease-key?
- Hash table runtime complexity (insert, search and delete)
- Most efficient way to store thousand telephone numbers
- Suffix tree and Tries. What is the difference?
- Algorithms based on number base systems? [closed]
- Choice of programming language for learning data structures and algorithms [closed]
- Difference between O(n) and O(log(n)) – which is better and what exactly is O(log(n))?
- Algorithm for autocomplete?
- Why increase pointer by two while finding loop in linked list, why not 3,4,5?
- Why are Fibonacci numbers significant in computer science?
- Storing 1 million phone numbers [closed]
- Binary Trees vs. Linked Lists vs. Hash Tables
- Difference between back tracking and dynamic programming
- How do you validate a binary search tree?
- Reverse the ordering of words in a string
- Implement a queue in which push_rear(), pop_front() and get_min() are all constant time operations
- Javascript data structures library [closed]
- How does 3D collision / object detection work?
- Good algorithm and data structure for looking up words with missing letters?
- How to implement 3 stacks with one array?
- Why is O(n) better than O( nlog(n) )?
- Algorithm/Data Structure Design Interview Questions [closed]
- Hashing a Tree Structure
- Finding anagrams for a given word
- What exactly is augmenting path?
- Applications of red-black trees
- Which data structures and algorithms book should I buy? [closed]
- Hash table vs Balanced binary tree [closed]
- Strategy to find your best route via Public Transportation only?
- find the max difference between j and i indices such that j > i and a[j] > a[i] in O(n)
- What is the difference between an on-line and off-line algorithm?
- Rebalancing an arbitrary BST?
- Trie complexity and searching
- Computing set intersection in linear time?