data structure and algorithms | Twise Random https://twiserandom.com A site about computer science . Fri, 13 Aug 2021 20:14:43 +0000 en-US hourly 1 https://wordpress.org/?v=5.8.1 https://twiserandom.com/wp-content/uploads/2019/08/cropped-abstract-color-32x32.jpg data structure and algorithms | Twise Random https://twiserandom.com 32 32 What is a floating point number ? https://twiserandom.com/data-structure-and-algorithms/what-is-a-floating-point-number/ Fri, 11 Dec 2020 19:58:42 +0000 https://twiserandom.com/?p=5048  
A number , can be thought of as a projection , used for example for measuring , be it time or distance , or for countig . A number is a discrete way of measuring , discrete as in … Read More

The post What is a floating point number ? first appeared on Twise Random.]]>
 
A number , can be thought of as a projection , used for example for measuring , be it time or distance , or for countig . A number is a discrete way of measuring , discrete as in … Read More

The post What is a floating point number ? first appeared on Twise Random.]]>
What is a signed number ? https://twiserandom.com/data-structure-and-algorithms/what-is-a-signed-number/ Sun, 06 Dec 2020 02:13:50 +0000 https://twiserandom.com/?p=4754  

The question, what is a signed number, is actually the question, of how to represent negative, zero, and positive integers, in a computer.

An integer is for example, -1 or 1, or 0, so in other Read More

The post What is a signed number ? first appeared on Twise Random.]]>
 

The question, what is a signed number, is actually the question, of how to represent negative, zero, and positive integers, in a computer.

An integer is for example, -1 or 1, or 0, so in other Read More

The post What is a signed number ? first appeared on Twise Random.]]>
What is an unsigned number ? https://twiserandom.com/data-structure-and-algorithms/what-is-an-unsigned-number/ Mon, 30 Nov 2020 23:01:56 +0000 https://twiserandom.com/?p=4547  
Asking what an unsigned number or integer is, is actually asking, how to represent the non negative integers, such as 0, or 1 in a computer.

An integer in mathematics, is any number which belong to … Read More

The post What is an unsigned number ? first appeared on Twise Random.]]>
 
Asking what an unsigned number or integer is, is actually asking, how to represent the non negative integers, such as 0, or 1 in a computer.

An integer in mathematics, is any number which belong to … Read More

The post What is an unsigned number ? first appeared on Twise Random.]]>
binary search algorithm in python , and php https://twiserandom.com/data-structure-and-algorithms/binary-search-algorithm-in-python-and-php/ Sat, 11 Jul 2020 18:33:20 +0000 https://twiserandom.com/?p=727 Binary search algorithm

Binary search is used to find if a sorted iterable , that can be indexed , contains an element in O(nlog(n)). It is faster than a a sequential search , where we can check if an … Read More

The post binary search algorithm in python , and php first appeared on Twise Random.]]>
Binary search algorithm

Binary search is used to find if a sorted iterable , that can be indexed , contains an element in O(nlog(n)). It is faster than a a sequential search , where we can check if an … Read More

The post binary search algorithm in python , and php first appeared on Twise Random.]]>
Permutate a string letters recursively in python https://twiserandom.com/data-structure-and-algorithms/recursion/permutate-a-string-letters-recursively-in-python/ Thu, 15 Aug 2019 01:23:10 +0000 https://twiserandom.com/?p=777 Let us say we have a string and we want to permutate through its letter . So for example

  • if the string is empty it will return an empty list
  • if it contains only one characters it must return a

Read More

The post Permutate a string letters recursively in python first appeared on Twise Random.]]>
Let us say we have a string and we want to permutate through its letter . So for example

  • if the string is empty it will return an empty list
  • if it contains only one characters it must return a
Read More The post Permutate a string letters recursively in python first appeared on Twise Random.]]>
Solving english ruler problem using recursion in python and swift https://twiserandom.com/data-structure-and-algorithms/solving-english-ruler-problem-using-recursion-in-python-and-swift/ Mon, 12 Aug 2019 00:10:57 +0000 https://twiserandom.com/?p=712 We must print an english ruler using recursion . An english ruler is ruler where each unit has a number of tick. a unit can be divided into smaller units at 1/2 the interval 1/4 the interval 1/8 the interval … Read More

The post Solving english ruler problem using recursion in python and swift first appeared on Twise Random.]]>
We must print an english ruler using recursion . An english ruler is ruler where each unit has a number of tick. a unit can be divided into smaller units at 1/2 the interval 1/4 the interval 1/8 the interval … Read More

The post Solving english ruler problem using recursion in python and swift first appeared on Twise Random.]]>
what is a byte ? https://twiserandom.com/data-structure-and-algorithms/what-is-a-byte/ Sat, 03 Aug 2019 07:38:03 +0000 https://twiserandom.com/?p=496 what is a byte ?

A byte is 8 bits ,

 [_ _ _ _ _ _ _ _ ]
  7 6 5 4 3 2 1 0 

number of bits = 7 - 0 + 1 = 8

A … Read More

The post what is a byte ? first appeared on Twise Random.]]>
what is a byte ?

A byte is 8 bits ,

 [_ _ _ _ _ _ _ _ ]
  7 6 5 4 3 2 1 0 

number of bits = 7 - 0 + 1 = 8

A … Read More

The post what is a byte ? first appeared on Twise Random.]]>