<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Afshan on Medium]]></title>
        <description><![CDATA[Stories by Afshan on Medium]]></description>
        <link>https://medium.com/@afshanahmed18?source=rss-464f30cf8917------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*5ekqx8eYGBJ9nWXNjkHtjw.jpeg</url>
            <title>Stories by Afshan on Medium</title>
            <link>https://medium.com/@afshanahmed18?source=rss-464f30cf8917------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 05:30:24 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@afshanahmed18/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[ZERO DAY VULNERABILITY]]></title>
            <link>https://medium.com/@afshanahmed18/zero-day-vulnerability-b00100834c90?source=rss-464f30cf8917------2</link>
            <guid isPermaLink="false">https://medium.com/p/b00100834c90</guid>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[zero-day]]></category>
            <category><![CDATA[vulnerability]]></category>
            <category><![CDATA[computing]]></category>
            <category><![CDATA[security]]></category>
            <dc:creator><![CDATA[Afshan]]></dc:creator>
            <pubDate>Sat, 06 Jun 2020 07:41:40 GMT</pubDate>
            <atom:updated>2020-06-06T07:41:40.585Z</atom:updated>
            <content:encoded><![CDATA[<p>What is it?</p><p>A software vulnerability that is yet not patched and could be exploited by hackers if they find it.</p><p>It could be a hacker who detects the vulnerability first or it could be the user or it could be the vendor. If the hacker detects the vulnerability, then she/he may exploit it right away, if the user detects the vulnerability, the user can either report it to tell about it to others, in the latter case it “may reach” a hacker who can then plan attacks, if the detector of the vulnerability is the vendor then they don’t disclose it to the public to avoid attacks until they have their patch ready.</p><p>Even after the patch is distributed, exploitation of the vulnerability can take place because this is the time people know about it and fewer people have the patch.</p><p><strong>Internet Explorer’s Zero-day:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/490/0*tWGNgaWuqX2CAN8J.gif" /><figcaption>yup, yup</figcaption></figure><p>The recent IE Zero-Day which was discovered during the start of 2020 caused some serious attacks on some targets but it was later fixed by its vendor Microsoft in early February. Well, this was not the first time IE had a vulnerability. It had zero-days in the past too.</p><p><strong>Firefox’s zero-day:</strong></p><p>Firefox also early this year rushed out a patch to fix its zero-day vulnerability. Still, by the time they reached the point to distribute the patch and even after that, many users were attacked and hackers had actively exploited the vulnerability.</p><h3><strong>The great SONY PICTURES zero-day Hack :</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/670/0*0oxrbakUdhBmCbIp.jpg" /></figure><p>A few years back, a group of Hackers who called themselves “<strong>guardian of the peace</strong>” hacked into the Sony Pictures systems and they gained access to some of their vital data, emails, business plans and personal information. They had demands which they wanted Sony pictures to fulfil in order for them to give their data back to them. This was one of the most famous hacks of the 21st century.</p><p>The hackers here attacked the zero-day vulnerability that was present in their system. What exactly was the vulnerability is not clear yet.</p><h3><strong>What is Google’s Project Zero?</strong></h3><p>Google’s project zero led to the development of the project zero team which solely has the job to find a zero-day vulnerability in systems.</p><p>After Zero-day vulnerabilities are found by the project zero team, it is reported to the software developers of the product. The product manufacturers are given 90 days time to fix the zero-day after which the vulnerability is made public. In some cases where the vulnerabilities can cause serious attacks the time interval to fix the bug becomes less than 90 days.</p><p>Google’s project zero has found some highly dangerous vulnerabilities including one in iPhone’s iMessage which caused the phone’s UI to become wild!</p><p>All in all, every software we use today can contain zero-day vulnerabilities. It’s best that we use updated browsers, updated OS and regularly install updates for other products. Also avoid clicking on buttons, pictures, links from unknown sources as they may contain the code to exploit the zero-day vulnerability.</p><p>Stay Safe!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b00100834c90" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why it’s impossible for a sorting algorithm based on key comparisons to possibly be faster than…]]></title>
            <link>https://medium.com/@afshanahmed18/why-its-impossible-for-a-sorting-algorithm-based-on-key-comparisons-to-possibly-be-faster-than-add19dfbc2cd?source=rss-464f30cf8917------2</link>
            <guid isPermaLink="false">https://medium.com/p/add19dfbc2cd</guid>
            <category><![CDATA[sorting]]></category>
            <category><![CDATA[complexity]]></category>
            <category><![CDATA[algorithms]]></category>
            <category><![CDATA[sorting-algorithms]]></category>
            <category><![CDATA[decision-tree]]></category>
            <dc:creator><![CDATA[Afshan]]></dc:creator>
            <pubDate>Thu, 28 May 2020 14:50:45 GMT</pubDate>
            <atom:updated>2020-05-28T14:56:17.437Z</atom:updated>
            <content:encoded><![CDATA[<h3>Why it’s impossible for a sorting algorithm based on key comparisons to possibly be faster than Ω(nlogn) in the worst case.</h3><p>You may know this, but here is why this is indeed true.</p><p>Let’s first float around the greek alphabet Ω<strong>. </strong>This essentially tells us about the minimum time that an algorithm will take to run.</p><p><strong>Any good algorithm has the same upper and lower bound.</strong></p><p>There are existing algorithms that have the worst-case complexity of <strong>O(nlogn) </strong>like the merge sort or Heap Sort. (*Quicksort does not have the worst-case complexity of <strong>O(nlogn)</strong> it’s <strong>O(n²)</strong> which occurs when the pivot badly divides the data into two highly unequal halves, only its average case is <strong>ϴ(nlogn) </strong>which makes it<strong> ϴ(nlogn) </strong>algorithm*)</p><p>Now let’s find the minimum time that a sorting algorithm will take at the worst case. If this turns out to be equal to the maximum time, then we can say that algorithms we have now are indeed “good” algorithms and no other algorithm can perform greatly better than them.</p><p>Let’s first form a Decision tree to sort elements in the ascending order.</p><p>We take a three-element array <strong>A </strong>containing elements <strong>a b c</strong> at positions <strong>0, 1, 2.</strong></p><p>Initially, we know nothing about the ﬁnal positions of the three values in the sorted output array. The correct output could be any permutation of the input values. For three values, there are n! = 6 permutations. Thus, the root node of the decision tree lists all six permutations that might be the eventual result of the algorithm.</p><p>a b c, a c b, b c a, b a c, c a b, c b a.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/489/0*gve_rTlAlUHAjccE.gif" /><figcaption>Decision tree to sort array a b c. <a href="https://www.csee.umbc.edu/">https://www.csee.umbc.edu/</a></figcaption></figure><p>Next Step would obviously be to compare the first two elements. That is, we compare A[0] with A[1] that is it’s a with b.</p><p>We have two situations: A[0]&lt; A[1] and A[0] &gt; A[1], for our instance its a &lt; b or b &gt; a. These two will form the next two branches of the decision tree.</p><p>Let us assume that A[0] &lt; A[1] that is, a &lt; b. You can also assume A[0] &gt; A[1] if you want.</p><p>Now with the condition that b &gt; a, we have three other permutations, where a will be before b because of ascending order. Those are:</p><p>a b c, a c b, c a b.</p><p>At this point, there would be no swap and our array is still a b c.</p><p>let’s halt a bit here.</p><p>What do we actually mean by the above? This is the fun part.</p><p>We assumed that our three-element array can take any form out of the 6 initially, but now we have reduced our expected outcomes. This means that these three will form the next node of the decision tree. Therefore, at this point, our outcome can be any one of the three permutations. Let’s evaluate further.</p><p>Evaluate the next two elements of the array.</p><p>We again have two instances A[2] &gt; A[1] and A[2] &lt; A[1] or is b &gt;c or b &lt; c.</p><p>We have two branches again for the same.</p><p>let’s assume that A[1] &lt; A[2] that is b &lt; a.</p><p>Now we have to look for permutations where a comes before b and also b comes before c. We have only one and that is <strong>a b c</strong>. Tada! Our sorted array is <strong>a b c </strong>because now we are at the leaf, we have the only option to choose a b c.</p><p>Had our A[1] &gt; A[2] or b &gt; c then we would have swapped b and c. We would have looked for combinations where a comes before b and also c comes before b. We would have landed into the left node containing two options:</p><p>a c b or c a b.</p><p>This essentially means that our final output could have been any one of these two.</p><p>We would then have compared c with a. We would have formed two more branches of a &gt; c or a &lt; c. A yes to the decision a &gt; c would have landed us on the right leaf containing the only option to choose, <strong>c a b</strong> and a no would have landed us on to the left leaf containing the only one option <strong>a c b</strong>.</p><p>We can obviously observe that reaching the final result or the final sorted array means that we have to reach the leaf of the decision tree. Because the only leaf has no scope for further comparison. This means that we have to calculate the time to reach the leaf of the decision tree.</p><p>We know that any array that contains n elements can have any one of the n! permutations as the final result. Therefore, our decision tree will have at least n! nodes. Well, a binary tree requires at least log(n + 1) levels for n nodes. This means that for n! roots we have to have at least log(n!) levels. If we have log(n!) levels, then we at least need log(n!) time units to reach the leaf.</p><p>Sterling’s approximation can approximate log(n!) to nlog(n).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/279/0*q-8jl6IdCUk82O39.png" /><figcaption>Sterling’s approximation. <a href="https://www.johndcook.com/">https://www.johndcook.com/</a></figcaption></figure><p>From this, we can say that that we require a minimum of nlog(n) time to “find” the sorted array.</p><p>Thus we have the statement that “it’s impossible for a sorting algorithm based on key comparisons to possibly be faster than Ω(nlogn) in the worst case”.</p><p>So if you are trying to write a programme that has sorting included then there is almost nothing that you can do to run it in less than <strong>ϴ(nlogn) </strong>time.</p><h4>So just stop banging your head!</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/0*MvSYzN3eDpYDRtbt" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=add19dfbc2cd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Did you say that the “first Computer” predicted the next US president?]]></title>
            <link>https://medium.com/@afshanahmed18/did-you-say-that-the-first-computer-predicted-the-next-us-president-39b8a651d602?source=rss-464f30cf8917------2</link>
            <guid isPermaLink="false">https://medium.com/p/39b8a651d602</guid>
            <category><![CDATA[us-elections]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[history-of-technology]]></category>
            <category><![CDATA[computers]]></category>
            <dc:creator><![CDATA[Afshan]]></dc:creator>
            <pubDate>Mon, 25 May 2020 10:29:57 GMT</pubDate>
            <atom:updated>2020-05-25T11:25:41.519Z</atom:updated>
            <content:encoded><![CDATA[<p>Yes, You heard it right. The first computer did predict the US president. Too much for the “first computer”? Maybe. But this machine intelligence led to a major change in ideology regarding machines itself.</p><p>It was the night when everything around computers, electronics and businesses changed. The night when UNIVAC predicted that Eisenhower of The Republican will win against Stevenson-Democrat in 1952.</p><p>Before this prediction, computers were juggling with their undetermined faith in the market. People were sceptical and many business leaders, politicians and even scientists refused to believe that the so-called machine can ever replace Human labour.</p><p><a href="https://www.google.com/search?rlz=1C1CHBF_enIN819IN819&amp;sxsrf=ALeKk01vy_DyX8DJD4L_lnn8VWowrRXamQ:1590398858915&amp;q=John+Mauchly&amp;stick=H4sIAAAAAAAAAOPgE-LUz9U3MCvKTStR4gAxs1OKjbXUs5Ot9JNKizPzUouL4Yz4_ILUosSSzPw8q7T80ryU1KJFrDxe-Rl5Cr6JpckZOZU7WBkBq_jYqVIAAAA&amp;sa=X&amp;ved=2ahUKEwjrrKW42c7pAhUzyzgGHZhJCUkQmxMoATAYegQIERAD">John Mauchly</a> and <a href="https://www.google.com/search?rlz=1C1CHBF_enIN819IN819&amp;sxsrf=ALeKk01vy_DyX8DJD4L_lnn8VWowrRXamQ:1590398858915&amp;q=J.+Presper+Eckert&amp;stick=H4sIAAAAAAAAAOPgE-LUz9U3MCvKTStR4gAxsypKDLXUs5Ot9JNKizPzUouL4Yz4_ILUosSSzPw8q7T80ryU1KJFrIJeegoBRanFQBkF1-Ts1KKSHayMAPmFLtNXAAAA&amp;sa=X&amp;ved=2ahUKEwjrrKW42c7pAhUzyzgGHZhJCUkQmxMoAjAYegQIERAE">J. Presper Eckert</a> were the first two Scientists who dared to see the future of computers in the then U.S markets. They also believed that Computers can indeed change the way humans live. They were so firm on their ideology that they launched their own firm called the <strong>Eckert–Mauchly Computer Corporation. </strong>Well, Well, this corporation delivered ENIAC/UNIVAC — a huge machine consisting of thousands of components. Although ENIAC promised computation of numbers of the length of a football field, it failed in time and economy. Because of its huge size, large components and noise, Macauly and Eckert started drowning in debt and they eventually sold their firm to The Remington Rand.</p><p>Did I say that Mauchly was also accused of having communal ties during World War 2? Well, Mauchly stayed with accusation until his death while their firm lost sales or “money” because of the same.</p><p>You see, Computers till this time were unsure about their future. Only a few companies made deals for UNIVAC which was not sufficient to make UNIVAC or computers popular. It was in 1952 when the US presidential elections went bold on news headlines and UNIVAC found a way to get popular using the time.</p><p>“Do you have a prediction for us UNIVAC?”, and yes it had a prediction and the prediction was :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*nqSmMZJB1iPW9wLO.jpg" /><figcaption>pic from <a href="https://www.npr.org/">https://www.npr.org/</a></figcaption></figure><p>People still refused to believe in UNIVAC and this document went unnoticed.</p><p>But wait, Did you say that Eisenhower will win the elections UNIVAC?</p><p>When the results of the election came out, people almost freaked out to see the “almost accurate” results.</p><p>Eisenhower won the elections by a large number of votes just like what UNIVAC had predicted with this, UNIVAC made its debut in news headlines, movies and even cartoons.</p><p><strong>“A UNIVAC is a fabulous electronic machine, which we have borrowed to help us predict this election from the basis of early returns as they come in.” — </strong>Collingwood</p><p>“<strong>As more votes came in, the odds came back and it was obviously evident that we should have had the nerve enough to believe the machine in the first place,” he said. “It was right. We were wrong. Next year we’ll believe it.” — </strong>Remington Rand representative.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*pI3fOb23P8C0FwtP.jpg" /><figcaption>Walter Cronkite (right) listens as Dr J. Presper Eckert (centre) describes the functions of the UNIVAC I computer he helped develop in the early 1950s., <a href="https://www.histclo.com/">https://www.histclo.com/</a></figcaption></figure><p><a href="https://youtu.be/nHov1Atrjzk">https://youtu.be/nHov1Atrjzk</a></p><p>With these results, people’s view of computers changed. UNIVAC was so successful in shaping the future of computers and automation that many successful firms started making deals with The Rand Corporation and with all the new popularity, the new future of computers took its shape.</p><p>Smart isn’t it? Well yeah, I definitely think that UNIVAC did do an extraordinary task by predicting the President itself. You were an amazingly cool machine even in the 1950s.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=39b8a651d602" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>