Skip to content

Commit

Permalink
rebuilding site Monday 16 September 2024 12:30:13 AM IST
Browse files Browse the repository at this point in the history
  • Loading branch information
animesh-chouhan committed Sep 15, 2024
1 parent 7c885ca commit 6604f87
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 16 deletions.
12 changes: 8 additions & 4 deletions DeepThought/content/posts/measuring-distance.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,12 @@ Let's represent the problem mathematically:
r = D - n \cdot L
$$

2. **Iterative Approximation Process:**8. [m-ary tree - Wikipedia](https://en.wikipedia.org/wiki/M-ary_tree)
3. [B-tree - Wikipedia](https://en.wikipedia.org/wiki/B-tree)
2. **Iterative Approximation Process:**

Now by dividing the rope, we can measure distances like \\( \frac{L}{2} \\), \\( \frac{L}{4} \\), \\( \frac{L}{8} \\) and so forth.

Let us represent the smaller divisions by \\(l_i\\) where:

$$l_i = \frac{L}{2^i}$$

Now, as \\(0 \le r < L\\) we can estimate \\( r \\) by using combinations of \\(l_i\\). Therefore,
Expand Down Expand Up @@ -172,7 +176,7 @@ Let's represent the problem mathematically:
r \approx \frac{L}{2} + \sum\_{i=1}^{\text{max iterations}} m_i \cdot l_i
$$

4. **Sum the Total Distance:**
3. **Sum the Total Distance:**

$$
D \approx n \cdot L + \frac{L}{2} + \sum\_{i=1}^{\text{max iterations}} m_i \cdot l_i
Expand Down Expand Up @@ -310,7 +314,7 @@ This function estimates the `distance` compared to the `scale`, aiming to conver

#### 2. `measure_repeated(distance, scale)`

This function extends `measure` by handling cases where `distance` is greater than the `scale`. z-index: 10; It breaks the `distance` into multiples of `scale`, then applies the `measure` function on the remainder.
This function extends `measure` by handling cases where `distance` is greater than the `scale`. It breaks the `distance` into multiples of `scale`, then applies the `measure` function on the remainder.

##### Key Steps:

Expand Down
2 changes: 1 addition & 1 deletion categories/maths/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ <h2 class="title">
<span class="icon">
<i class="fas fa-pencil-alt"></i>
</span>
<span>4418 words</span>
<span>4427 words</span>
</span>

</div>
Expand Down
2 changes: 1 addition & 1 deletion categories/python/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ <h2 class="title">
<span class="icon">
<i class="fas fa-pencil-alt"></i>
</span>
<span>4418 words</span>
<span>4427 words</span>
</span>

</div>
Expand Down
2 changes: 1 addition & 1 deletion posts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ <h2 class="title">
<span class="icon">
<i class="fas fa-pencil-alt"></i>
</span>
<span>4418 words</span>
<span>4427 words</span>
</span>

</div>
Expand Down
13 changes: 6 additions & 7 deletions posts/measuring-distance/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ <h1 class="title">
<span class="icon">
<i class="fas fa-pencil-alt"></i>
</span>
<span>4418 words</span>
<span>4427 words</span>
</span>

</div>
Expand Down Expand Up @@ -285,11 +285,10 @@ <h4 id="algorithm">Algorithm:</h4>
$$</p>
</li>
<li>
<p>**Iterative Approximation Process:**8. <a rel="noopener nofollow noreferrer" target="_blank" href="https://en.wikipedia.org/wiki/M-ary_tree">m-ary tree - Wikipedia</a></p>
</li>
<li>
<p><a rel="noopener nofollow noreferrer" target="_blank" href="https://en.wikipedia.org/wiki/B-tree">B-tree - Wikipedia</a>
$$l_i = \frac{L}{2^i}$$</p>
<p><strong>Iterative Approximation Process:</strong></p>
<p>Now by dividing the rope, we can measure distances like \( \frac{L}{2} \), \( \frac{L}{4} \), \( \frac{L}{8} \) and so forth.</p>
<p>Let us represent the smaller divisions by \(l_i\) where:</p>
<p>$$l_i = \frac{L}{2^i}$$</p>
<p>Now, as \(0 \le r &lt; L\) we can estimate \( r \) by using combinations of \(l_i\). Therefore,</p>
<p>$$r_{approx} = \frac{L}{2} \pm \frac{L}{4} \pm \frac{L}{8} \pm \frac{L}{16} \cdots$$</p>
<p><strong>How can we be sure that this approximation covers the whole range?</strong></p>
Expand Down Expand Up @@ -494,7 +493,7 @@ <h5 id="key-steps">Key Steps:</h5>
</li>
</ol>
<h4 id="2-measure-repeated-distance-scale">2. <code>measure_repeated(distance, scale)</code></h4>
<p>This function extends <code>measure</code> by handling cases where <code>distance</code> is greater than the <code>scale</code>. z-index: 10; It breaks the <code>distance</code> into multiples of <code>scale</code>, then applies the <code>measure</code> function on the remainder.</p>
<p>This function extends <code>measure</code> by handling cases where <code>distance</code> is greater than the <code>scale</code>. It breaks the <code>distance</code> into multiples of <code>scale</code>, then applies the <code>measure</code> function on the remainder.</p>
<h5 id="key-steps-1">Key Steps:</h5>
<ol>
<li>
Expand Down
2 changes: 1 addition & 1 deletion tags/python/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ <h2 class="title">
<span class="icon">
<i class="fas fa-pencil-alt"></i>
</span>
<span>4418 words</span>
<span>4427 words</span>
</span>

</div>
Expand Down
2 changes: 1 addition & 1 deletion tags/visualization/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ <h2 class="title">
<span class="icon">
<i class="fas fa-pencil-alt"></i>
</span>
<span>4418 words</span>
<span>4427 words</span>
</span>

</div>
Expand Down

0 comments on commit 6604f87

Please sign in to comment.