<?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 Abhiram Vadrevu on Medium]]></title>
        <description><![CDATA[Stories by Abhiram Vadrevu on Medium]]></description>
        <link>https://medium.com/@saiabhiram16.vadrevus?source=rss-4b462c39742b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*9imzuXf-OzRaNkNX</url>
            <title>Stories by Abhiram Vadrevu on Medium</title>
            <link>https://medium.com/@saiabhiram16.vadrevus?source=rss-4b462c39742b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 06:10:18 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@saiabhiram16.vadrevus/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[Permutation]]></title>
            <link>https://medium.com/@saiabhiram16.vadrevus/permutation-1c8c96daadb7?source=rss-4b462c39742b------2</link>
            <guid isPermaLink="false">https://medium.com/p/1c8c96daadb7</guid>
            <dc:creator><![CDATA[Abhiram Vadrevu]]></dc:creator>
            <pubDate>Fri, 10 Jun 2022 11:07:22 GMT</pubDate>
            <atom:updated>2022-06-10T11:07:22.144Z</atom:updated>
            <content:encoded><![CDATA[<h3>What Is Permutation:</h3><p>A permutation is an arrangement of objects in a definite order.</p><p>Real Life Example of Permutation:</p><h4>1. Protein Formation in The Body.</h4><h4><strong>2. Working Out the Ways to Win a Lottery.</strong></h4><h4>3. Number of Seating Arrangements.</h4><h3>Permutation of n different objects:</h3><h3>A permutation of n objects taken k at a time is an arrangement of k of the n objects in a specific order where 0 &lt; r ≤ n. The symbol for this number is P (n, k).</h3><p>Remember:</p><h3>1. A permutation is an arrangement or sequence of selections of objects from a single set.</h3><p>2.Repetitions are not allowed. Equivalently the same element may not appear more than once in an arrangement.</p><p>3.The order in which the elements are selected or</p><p>arranged is significant.</p><p>Representation of Permutation:</p><p>We can represent permutation in many ways, such as:</p><p>Formula:</p><p>The formula for permutation of n objects for r selection of objects is given by:</p><p><strong>P(n,r) = n!/(n-r)!</strong></p><p>A general formula, using the multiplication principle: P (n, k) =</p><p>n · (n − 1) · (n − 2) · · · (n − k + 1).</p><p>Examples:</p><p>1. Picking a President, VP and Water boy from a group of 10.</p><p>2. In how many ways 6 children can be arranged in a line, such that</p><p>(i) Two particular children of them are always together</p><p>(ii) Two particular children of them are never together</p><p><em>Solution:</em></p><h3>(i) The given condition states that 2 students need to be together, hence we can consider them 1.</h3><p>Thus, the remaining 7 gives the arrangement in 5! Ways = 120.</p><p>Also, the two children in a line can be arranged in 2! Ways.</p><p>Hence, the total number of arrangements will be,</p><p>5! × 2! = 120 × 2 = 240 ways</p><p><strong>(ii)</strong> The total number of arrangements of 6 children will be 6! =720 ways.</p><p>Out of the total arrangement, we know that two particular children when together can be arranged in 240 ways.</p><p>Therefore, total arrangement of children in which two particular children are never together will be 720–240 ways = <strong>480 ways</strong></p><p>Types of Permutation:</p><p><strong>Permutation can be classified in three different categories:</strong></p><h3>· Selection when the repetition of items is allowed.</h3><p>· Selection when the repetition of items is not allowed.</p><p>· Permutation when the objects are not distinct (Permutation of multi sets).</p><p><strong>Permutation with Repetition</strong></p><p>When the repetition of items is allowed, at every step of selection from the set of ’n’ items, we have all the ’n’ choices available to us since we can make a choice multiple time. So, for choosing ‘r’ items, we have n choices available to us ‘r’ times. Let us call the event of choosing an item as E:</p><p>n(E) = n (the number of ways in which E can take <a href="https://www.toppr.com/guides/english/prepositions/prepositions-place/">place</a>)</p><p>Since this event is taking place ‘r’ times and the act of choosing an item from the available set is always independent of our other choices, we may invoke the Product Rule of Counting here. Using the fundamental principle then, we get,</p><p>n (E taking place ‘r’ times) = nr</p><p>This is the permutation formula for calculating the number of permutations possible for the choice of ‘r’ items from a <a href="https://www.toppr.com/guides/maths/sets/introduction-to-sets/">set </a>of ’n’ distinct items when repetition is allowed.</p><h3>Permutation without Repetition</h3><p>In this case, when the repetition of objects is not allowed, we must be careful, not to choose a specific object more than once. Hence our choices after each event get reduced by one. For example, when we begin</p><p>the selection, for the first object, we have all the ‘n’</p><p>choices available to us.</p><p>In the next event, however, we have ‘(n-1)’ objects available for choice, since we must not include the object that we have already chosen in the first step. Similarly, for the third step, we have ‘(n-2)’ objects available to us. Thus, from the Product Rule of Counting, we can get,</p><p>n(E) = n × (n — 1) × (n — 1) … (n — (r — 1))</p><p>= n! (n−r)!</p><p><strong>Permutation of multi-sets </strong>Permutation of n different objects when p1</p><p>objects among ’n’ objects are similar,</p><p>p2</p><p>objects of the second kind are similar, p3</p><p>objects of the third kind are similar ……… and so on, pk</p><p>objects of the kth kind are similar and the remaining of all are of a different kind,</p><p>Thus, it forms a multiset, where the permutation is given as:</p><h3>Alternate Analysis of nPr</h3><p>If you remember, we had also mentioned ‘ordered combinations’ as another interpretation of permutations. Let us look at the formula for the number of combinations of ‘r’ items out of a set of ’n’ items:</p><p>nCr = n! r! (n−r)!</p><p>Let us take a specific <a href="https://www.toppr.com/guides/quantitative-aptitude/permutation-and-combination/number-of-combination/">combination </a>of these numbers of different combinations. In permutations, the order of the chosen elements does matter; while in the combinations the order doesn’t matter. Thus, to arrive at the number of permutations, we must multiply the number of combinations by the number of possible permutations of each specific combination!</p><p>What is the number of permutations for a set of ‘r’ items? It is simply r! as we have discussed some time ago. Multiplying nCr by r! we observe:</p><p>nCr × r! = n! (n−r)! = nPr</p><p><strong>THANKYOU!!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1c8c96daadb7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[FACILE —  simplified programming]]></title>
            <link>https://medium.com/@saiabhiram16.vadrevus/facile-simplified-programming-41dd69f3be3c?source=rss-4b462c39742b------2</link>
            <guid isPermaLink="false">https://medium.com/p/41dd69f3be3c</guid>
            <dc:creator><![CDATA[Abhiram Vadrevu]]></dc:creator>
            <pubDate>Sun, 19 Dec 2021 16:18:52 GMT</pubDate>
            <atom:updated>2021-12-19T16:18:52.762Z</atom:updated>
            <content:encoded><![CDATA[<h3>FACILE — simplified programming</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/291/1*bmVtiOsTxax9DlU6JnHU7w.jpeg" /></figure><p>Just imagine a world where you don’t need to learn a separate computing language to code or program. The main problem with programming or coding is that for anyone to code, they need to learn a separate computing language to do so. This is the main reason why much of the population that is creative are not able to enter the field of computing and make wonders.</p><p>Life would be much easier if robots were in the real world as depicted in a number of movies like iRobot or artificial intelligence. Mankind would reach heights of invention and make innovations that were only thought be a myth like the question “What happens when you fall into a blackhole?” or like “do aliens really exist?”. All these type of questions can be answered with AI. But the main question is, is AI easy?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/275/1*BV_nFk_FiIDN6ND55jGAgA.jpeg" /></figure><p>Well the answer is yes. Yes, for a computer science engineer who has done his masters in Artificial Intelligence, its easy for him to develop an AI. It would take considerable amount of time but yes he will be able to develop it.</p><p>But imagine a high school student who wants to get into the field of computer science with an interest in AI. He won’t be able to understand why they would teach another language to him to program. Well, at least that was me in dilemma when I started my engineering course. We all know that to program you need a compiler, which is designed to take input of tasks in a certain computing language, process and convert it into binary for the computer to understand and give an output as a result which favors the user.</p><p>But let us imagine a compiler or IDE (Integrated Development Environment) which takes in the input in as basic English language, process the information, coverts this into binary for the computer to understand and gives the output. This would make a great more application not only in the field of AI but in every engineering discipline or in every field where innovation is possible. Presently, coding is limited to people who study computer science engineering or basic engineering, and that according to me isn’t fair. A person who has a background in commerce might be more creative than an engineer and he might create something which can change the World.</p><p>To develop such a complex IDE. Yes it will be a complex project as making a compiler that can understand basic English would take up a lot of pre-defined functions, algorithms to make sure that the compiler is converting the given input to binary in a fraction of second like a normal python compiler does.</p><p>Example of what I want to do is basically from the C# code below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/678/1*ne86ldHYqDdjUae8qtNAqw.png" /></figure><p>I want to be able to write the above code in my perfect language like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k4jRIVzWIk3-MQSGVequAg.png" /></figure><p>Most languages allow to ‘tweak’ to certain extend parts of the syntax and/or semantics that you will be using in your code. But I have not heard of a language that can just completely define how your code will look like. So isn’t there some language that already exists that has such capabilities to override all syntax &amp; define semantics?</p><p>An example of at I want to do is basically from the C# code below:</p><pre>foreach(Fruit fruit in Fruits)<br>{<br>  if(fruit is Apple)<br>  {<br>    fruit.Price =  fruit.Price/2;<br>  }<br>}</pre><p>I want to be able to write the above code in my perfect language like this:</p><pre>Check if any fruits are Macintosh apples and discount the price by 50%.</pre><p>The advantages that come to my mind looking from a coder’s perspective in this “imaginary” language are:</p><ol><li>It’s very clear what is going on (self descriptive) — it’s plain English after all even kid would understand my program</li><li>Hides all complexities which I have to write in C#. But why should I care to learn that if statements, arithmetic operators etc since there are already implemented</li></ol><p>To make such an IDE we have to do the following steps:</p><p>Firstly-</p><ul><li>You want to edit source code files.</li><li>And you want to invoke (run) your compiler.</li><li>And you want to show compilation results.</li></ul><p>After those, extra features are a bonus:</p><ul><li>Syntax color highlighting.</li><li>Help and documentation.</li><li>Project file manager.</li><li>Multi-file build.</li><li>A debugger (very hard).</li><li>Support for plug-ins.</li></ul><p>Let’s look at it from a different perspective. The last item on the list is <em>support for plug-ins</em>. One solution is to make everything a plug-in. This has the natural advantage of breaking the task down into individual chucks. Thus write a program that allows the ability to support plug-ins, then develops each IDE feature as a plug-in:</p><ul><li>Start with a plug-in framework.</li><li>Then develop an editor plug-in.</li><li>Add a compiler invocation plug-in.</li><li>Develop a program output viewer plug-in to see compiler results.</li><li>Write a plug-in for source code parsing.</li><li>This allows for a source code syntax color highlighting plug-in.</li><li>Develop an HTML file viewer plug-in (for help files and Internet pages).</li><li>Write a project file manager plug-in to manage project files.</li><li>Next develop a <a href="https://en.wikipedia.org/wiki/Make_(software)">make</a>, <a href="http://ant.apache.org/">Ant</a>, or <a href="https://gradle.org/">Gradle</a> project build manager plug-in for multi-file builds.</li><li>How about a <a href="https://git-scm.com/">Git</a> plug-in for source code control.</li><li>The really hard one is a debugger plug-in.</li><li>Then any other feature you want, e.g. an install builder plug-in, a database manager plug-in, a snippet manager plug-in, etc.</li></ul><p>This product can be developed roughly in the time duration of 3 to 4 years with proper focus and determination.</p><p>All this would take up a lot of resources and time. Instead, there are many IDEs already available, so why not build on those and adapt them.</p><p>I do not think that it will be a problem for this product to gain popularity, as it is a very different and new idea that has not been implemented yet. the main target audience for this product would not be an engineer who has already learned the computing languages but would be a high school student or any other graduate from other fields like Arts, Accountancy, Medical, etc. as we have seen that in this current generation anyone who has not taken Computer Science as their expertise, will return in the last to programming or would need to use programming in their jobs, This would help such people in their work.</p><p>The disadvantages that I see for a coder who will maintain this program are:</p><ol><li>Maybe you would express this program differently from me so you may not get all the information that I’ve expressed in my sentence</li><li>Programs can be quite verbose and hard to debug but if possible to even proximate this type of syntax above maybe more people would start programming right? That would be amazing I think. I can go to work and just write an essay to draw a square on a winform like this:</li></ol><p>Create a form called MyGreetingForm. Draw a square with in the middle of MyGreetingFormwith a side of 100 points. In the middle of the square write &quot;Hello! Click here to continue&quot; in Arial font.</p><p>In the above code the parser must basically guess that I want to use the unnamed square from the previous sentence, it’d be hard to write such a smart parser I guess, yet it’s so simple what I want to do.</p><p>If the user clicks on square in the middle of MyGreetingForm show MyMainForm.</p><p>In the above code ‘basically’ the compiler must: 1)generate an event handler 2) check if there is any square in the middle of the form and if there is — 3) hide the form and show another form</p><p>this would also affect many people’s work as programming becomes much more available to everyone and the demand decreases as supply is more.</p><p>Just imagine If you could type all you want a computer or software to do for you in basic English, and it understands it perfectly and executes everything you want. It would solve a lot of problems. If we use the basic English language for coding instead of creating new and complex languages dedicated to coding. All we must do would be build a super-fast compiler that can convert basic English language into machine language. That, according to me would be a revolutionary change in the World as everyone who knows English would be able to code and make something new. Presently, coding is limited to people who study computer science engineering or basic engineering, and that according to me isn’t fair. A person who has a background in commerce might be more creative than an engineer and he might create something which can change the World.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=41dd69f3be3c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>