<?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 Fatima Khatib on Medium]]></title>
        <description><![CDATA[Stories by Fatima Khatib on Medium]]></description>
        <link>https://medium.com/@fatima.khatib20?source=rss-f4855d52c652------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*NooG6QGkParcVgpi</url>
            <title>Stories by Fatima Khatib on Medium</title>
            <link>https://medium.com/@fatima.khatib20?source=rss-f4855d52c652------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 11:08:48 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@fatima.khatib20/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[Understanding ChatGPT]]></title>
            <link>https://medium.com/@fatima.khatib20/understanding-chatgpt-f1d8446f1ba9?source=rss-f4855d52c652------2</link>
            <guid isPermaLink="false">https://medium.com/p/f1d8446f1ba9</guid>
            <category><![CDATA[transformer-model]]></category>
            <category><![CDATA[large-language-models]]></category>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Fatima Khatib]]></dc:creator>
            <pubDate>Wed, 22 Nov 2023 23:36:38 GMT</pubDate>
            <atom:updated>2023-11-28T06:01:49.768Z</atom:updated>
            <content:encoded><![CDATA[<p>Authors: <a href="https://medium.com/u/98935c02673">Amogh Dixit</a>, <a href="https://medium.com/u/9aeaa9855cf9">Arnav Kanathia</a>, <a href="https://medium.com/u/d69b9a1b5985">AYUSH INGLE</a>, <a href="https://medium.com/u/ccaeea16e54">Fatima Khatib</a></p><p>ChatGPT since its release has become the go-to artificial intelligence chatbot to engage in conversation, find instant answers, and compose essays with great precision and detail. This introduction describes the architecture of the machine learning models employed by ChatGPT. Large language model (LLM) is trained on a large amount of internet data from several sources and the transformer architecture is used to filter through this data and transform it into a natural, human-like response, based on given text input. The model is optimized to provide more natural and unbiased outputs using Supervised Learning and Reinforcement Learning.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*W2wXYcFj8A-UGwsM.png" /></figure><h3>OpenAI Generative Pre-training Transformer</h3><p>GPT-1 was launched by OpenAI in 2018, followed by GPT-2 in 2019, GPT-3 in 2020, and InstructGPT and ChatGPT in 2022. The advancement of these models was driven by increased computational efficiency. GPT-3 was trained on significantly more data than its predecessor and integrated human feedback.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*SUy5-wW69oS0Hz-6" /><figcaption>GPT-2 vs GPT-3 (<a href="https://towardsdatascience.com/how-chatgpt-works-the-models-behind-the-bot-1ce5fca96286">Source</a>)</figcaption></figure><p>The GPT-3 model is a family of models with 175 billion parameters.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/0*misrQmOSQ_IVu57p" /><figcaption>Sizes and learning parameters of the GPT-3 models (<a href="https://www.theaidream.com/post/openai-gpt-3-understanding-the-architecture">Source</a>)</figcaption></figure><p>It is trained on large pieces of information books, articles, websites, and various other sources from the internet, before it can remember the patterns and structures of language. During the training process, the model learns the statistical relationships between words, phrases, and sentences, allowing it to generate coherent and contextually relevant responses when given a prompt or query.</p><p>GPT-4’s key advantage similar to GPT-3 lies in its extensive pre-training on an enormous corpus of text data, enabling it to learn an incredibly diverse range of language features and relationships, making it 500 times more powerful than GPT-3.</p><h3>LARGE LANGUAGE MODEL</h3><p>As humans, we perceive text as a collection of words. However, for computers, text is merely a sequence of characters. To enable machines to comprehend text, a model based on recurrent neural networks is necessary.</p><p>Large language model is a transformer model that can take long input text, generate a larger context vector that can handle very complex concepts, and contains many layers in its encoder and decoder. It is so large that it usually cannot be run on a single computer and is a service provided over API or a web interface. The language model is used to predict the next word or tokens based on text that appeared previously.</p><p>The training process assigns probabilities to tokens and the token with highest probability is predicted one at a time as the next part of the input.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/628/0*13nSHYzNC-7OZLyb" /><figcaption>Predicting most likely next token (<a href="https://rpradeepmenon.medium.com/introduction-to-large-language-models-and-the-transformer-architecture-534408ed7e61#:~:text=The%20above%20example%20shows%20that,token%20is%20selected.">Source</a>)</figcaption></figure><h4>Types of Large Language Models</h4><p>There are several different types of large language models, each with its own set of strengths and weaknesses.</p><ul><li><strong>Autoencoder-Based Model: </strong>One type of large language model is the autoencoder-based model, which works by encoding input text into a lower-dimensional representation and then generating new text based on that representation. This type of model is especially good for tasks like summarizing text or generating content.</li><li><strong>Sequence-to-Sequence Model: </strong>Another type of large language model is the sequence-to-sequence model, which takes an input sequence (like a sentence) and generates an output sequence (like a translation into another language). These models are often used for machine translation and text summarization.</li><li><strong>Transformer-Based Models: </strong>Transformer-based models are another popular type of large language model. These models use a neural network architecture that’s great at understanding long-range dependencies in text data, and are used for various language tasks, including text generation, language translation and answering questions.</li><li><strong>Recursive Neural Network Models: </strong>Recursive neural network models are designed to handle structured data like parse trees, which represent the syntactic structure of a sentence. These models are useful for tasks like sentiment analysis and natural language inference.</li><li><strong>Hierarchical Models: </strong>Finally, hierarchical models are designed to handle text at different levels of granularity, such as sentences, paragraphs, and documents. These models are used for tasks like document classification and topic modeling.</li></ul><p>The most well-known Large Language Model (LLM) architecture is the transformer architecture.</p><h3>TRANSFORMER MODEL</h3><p>The detailed steps of the transformer model to process input data are discussed below:</p><h4><strong>1. Word Embedding</strong></h4><p>Text input is processed by tokenizing it into a sequence of words, then simultaneously encoded tokens as numbers using mathematical equations. The tokens are converted to a context-vector representation that preserves their meanings and groups similar words closely.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*9QxovjxsGay34XVG" /><figcaption>Embedding representation for given vocabulary (<a href="https://www.shanelynn.ie/get-busy-with-word-embeddings-introduction/">Source</a>)</figcaption></figure><p>Embeddings for words are created using a neural network that has been trained on a large corpus of text. Based on words that come before and after a sentence, the network is trained to predict the probability of a word occurring in the given context. The vectors learned are able to identify the meaning and relationship between different words, as demonstrated in the following image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/283/0*ye0BaElTPr2y8gld" /><figcaption><em>Similar words are closely placed in vector space (</em><a href="https://www.mygreatlearning.com/blog/word-embedding/">Source</a>)</figcaption></figure><h4><strong>2. Positional Encoding</strong></h4><p>Positional encoding helps the model figure out where words are in a sequence. It doesn’t deal with the meaning of words or how they relate to each other, like how “cat” and “dog” are pretty similar. Instead, positional encoding is all about keeping track of word order. For example, when translating a sentence like “The cat is on the mat” to another language, it’s crucial to know that “cat” comes before “mat.” Word order is super important for tasks like translation, summarizing stuff, and answering questions.</p><p>During the training phase, the neural network is presented with a vast corpus of text data and is trained to make predictions based on that data. The weights of the neurons in the network are adjusted iteratively using a backpropagation algorithm in order to minimize difference between actual and predicted output.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/810/0*c5kVsWLwCmfI3pwz" /></figure><h4><strong>3. Transformer Layers</strong></h4><p>The data is passed through multiple transformer layers after the traditional neural network layers. The transformer layer works by processing the entire input sequence in parallel rather than sequentially. It consists of two essential components: the self-attention mechanism and the feedforward neural network.</p><p>Transformer models use self-attention mechanisms to predict text by considering parts of the sentence or its entire context. A weight is assigned to each word in the sequence, depending on how valuable it is for the prediction. This captures the relationships between words, regardless of their distance from each other.</p><p>After the self-attention layer finishes processing the sequence, the position-wise feed-forward layer takes in each position in the input sequence and processes it independently. For each position, a fully connected layer takes in a vector representation of the token (word or sub-word) at that position. This vector representation is the output from the preceding self-attention layer.</p><p>The fully connected layers in this context serve to transform the input vector representations into new vector representations, which are better suited for the model to learn complex relationships between words. During training, the transformer layer’s weights are updated repeatedly to reduce the difference between actual and predicted output. This is done through the backpropagation algorithm, which is similar to the training process for traditional neural network layers.</p><h4><strong>4. Text Generation</strong></h4><p>After the LLM has been trained and fine-tuned, the new vector representations are used by the transformer decoder to generate sophisticated text based on a prompt or question. The model uses the parameters it has learned during training to calculate the probability distribution of the next word or token and then selects the most likely choice as the next output. The same decoder is reused to generate output one at a time based on the previously produced words. This process called autoregression, is repeated to create an entire paragraph, starting from a leading sentence.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/655/0*M74Twkpg9LQqVvbt" /><figcaption>Auto-regression (<a href="https://www.researchgate.net/figure/Using-an-RNN-language-model-to-generate-a-word-sequence_fig6_325385139">Source</a>)</figcaption></figure><h4>Example</h4><p>Lets step through the transformer architecture with the following sentence as a sample input, “in the warehouse, the server just”. The language model’s expected out for the next word is known (exploded) and its parameters are tweaked until it generates a similar word. The diagram below depicts the parameters that are part of each box and the chosen parameters are responsible to determine the output.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*ME6tJy-lan1LiflR.png" /></figure><p><em>Step 0: Tokenization</em></p><p>A token is equated to a word, which are then mapped to a number to create a numerical representation of the input. The set of numbers for the input would be:</p><p>102, 23, 56, 23, 64, 43.</p><p><em>Step 1: Embedding</em></p><p>Each token is mapped to a vector that meaningfully represents the word. The token 102 would be turned into an n-dimensional vector:</p><p>[321, 23, … 54].</p><p><em>Step 2: Positional encoding</em></p><p>A number is assigned onto every word’s embedding that represents its position in the sentence, enabling the model to consider word order without processing each word sequentially.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*cyyMElwpSGgHJVdZ.png" /></figure><p><em>Step 3: Self-attention</em></p><p>Focused on the most relevant parts of the sentence while processing a single word. When processing the word <em>server,</em> the model would pay attention to the word <em>warehouse</em> to determine whether the sentence is talking about a machine server or a human server.</p><p><em>Step 4: Feed Forward Neural Network</em></p><p>The feed-forward network takes the information from the previous steps to find potential output words. Training to predict the correct next word is done using gradient descent and backpropagation algorithms.</p><p><em>Step 5: Linear and Softmax</em></p><p>Functions that turn the scores from the previous step into probabilities between 0 and 1 of how likely an output word is.</p><p>At this stage, the model has a set of words with their corresponding probabilities of being a suitable next word. Selecting the word with just the highest probability can lead to repetitive and looping responses. To avoid this, a sampling technique is used where one of the high-probability words is randomly selected. This is why ChatGPT often provides different responses to the same input. The “temperature” variable can be adjusted to control the level of randomness in responses.</p><h3>REINFORCEMENT LEARNING FROM HUMAN FEEDBACK</h3><p>Incorporation of “Reinforcement Learning from Human Feedback” (RLHF) allows ChatGPT to incorporate human feedback into the learning process to make it more dynamic and powerful in a wide range of applications. The paper “Training language models to follow instructions with human feedback” by OpenAI describes this process in greater detail, which has been summarized as follows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*cdSwo-PJ10TIjeI2" /><figcaption>Reinforcement Learning (<a href="https://intellabs.github.io/coach/_images/design.png">Source</a>)</figcaption></figure><h4><strong>1. Supervised Fine Tuning</strong></h4><p>Firstly, data is collected in the form of prompts to create a supervised model.</p><ul><li><strong>Data collection: </strong>a list of prompts is selected and a group of human labellers are asked to list the expected output response. For ChatGPT, two different sources of prompts have been used: some prepared directly from the labelers or developers and some sampled from OpenAI’s API requests (i.e. from their GPT-3 customers). The result is a relatively small, high-quality curated dataset, which is used to tune a pre-trained language model.</li><li><strong>Model choice: </strong>developers chose a GPT-3.5 pre-trained model rather than fine tuning the original GPT-3 model.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*06nISxzCdZFzOTTv" /><figcaption>Inserted from “Training language models to follow instructions with human feedback” OpenAI 2022 (<a href="https://arxiv.org/pdf/2203.02155.pdf">Source</a>)</figcaption></figure><p>The text generated by the obtained SFT model is not very user-attentive and likely to suffer from misalignment due to limited data in this step. Thus labelers were required to rate the outputs of the model to create a reward model instead of creating a larger dataset.</p><h4><strong>2. Reward Model</strong></h4><p>Reward model learns directly from the data in order to rate the model outputs, based on how desirable they are. This process extracts an automatic system from the data that mimics human preferences.</p><ul><li>A list of prompts is selected and for each prompt, between 4 and 9 outputs are generated by the SFT model.</li><li>Outputs are ranked from best to worst by labelers, resulting in a new labeled dataset, 10 times larger than the dataset used in the SFT model, with the rankings as labels.</li><li>A new reward model is trained using the new dataset. It takes some SFT model outputs as input and ranks them based on preference.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*HYFUQzrn4nEfjce2" /><figcaption>Inserted from “Training language models to follow instructions with human feedback” OpenAI 2022 (<a href="https://arxiv.org/pdf/2203.02155.pdf">Source</a>)</figcaption></figure><h4>3. Proximal Policy Optimization (PPO) to fine-tune SFT</h4><p>The reward model is optimized by applying reinforcement learning to fine-tune the SFT model. The fine-tuned model is known as the PPO model.</p><ul><li>PPO trains agents in reinforcement learning. Instead of learning from previous experiences, it learns from and updates the current model. PPO continuously adapts the current model considering actions the agent took and rewards it received.</li><li>The policy is trained using “trust region optimization,” which ensures stability by constraining the update to be within a certain distance of the previous model.</li><li>Value function is applied to estimate the predicted outcome of a given state or action. An advantage function indicates the difference between the expected return and the current return is computed using the value function. The advantage function is then used to update the model by comparing the current model’s action to the action that the prior policy would have taken. This enables PPO to make better informed policy adjustments, based on the predicted value of the actions taken.</li></ul><p>PPO model is initialized from the SFT model, and the value function is initialized from the reward model. Given the prompt and response, a reward is produced by the reward model.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*maHUeYy9Eh1VJCwB" /><figcaption>Inserted from “Training language models to follow instructions with human feedback” OpenAI 2022 (<a href="https://arxiv.org/pdf/2203.02155.pdf">Source</a>)</figcaption></figure><p>And that wraps up our journey into the fascinating world of ChatGPT. There was a lot of engineering that went into creating the models used by ChatGPT. The technology behind it is constantly evolving, opening doors to new possibilities and reshaping the way we communicate.</p><h4>References</h4><ol><li><a href="https://www.theaidream.com/post/openai-gpt-3-understanding-the-architecture">OpenAI GPT-3: Understanding the Architecture</a></li><li><a href="https://towardsdatascience.com/how-chatgpt-works-the-models-behind-the-bot-1ce5fca96286">How ChatGPT Works: The Model Behind The Bot | by Molly Ruby | Towards Data Science</a></li><li><a href="https://wandb.ai/mostafaibrahim17/ml-articles/reports/An-Overview-of-Large-Language-Models-LLMs---VmlldzozODA3MzQz">An Overview of Large Language Models (LLMs) | Weights &amp; Biases</a></li><li><a href="https://rpradeepmenon.medium.com/introduction-to-large-language-models-and-the-transformer-architecture-534408ed7e61#:~:text=The%20above%20example%20shows%20that,token%20is%20selected">Introduction to Large Language Models and the Transformer Architecture | by Pradeep Menon</a></li><li><a href="https://www.shanelynn.ie/get-busy-with-word-embeddings-introduction/">Intro to Word Embeddings and Vectors for Text Analysis.</a></li><li>Training Language Models To Follow Instructions with human feedback <a href="https://doi.org/10.48550/arXiv.2203.02155">https://doi.org/10.48550/arXiv.2203.02155</a></li><li>Training a Helpful and Harmless Assistant with Reinforcement Learning for Human Feedback <a href="https://doi.org/10.48550/arXiv.2204.05862">https://doi.org/10.48550/arXiv.2204.05862</a></li><li>Learning to summarize from human feedback <a href="https://doi.org/10.48550/arXiv.2009.01325">https://doi.org/10.48550/arXiv.2009.01325</a></li><li>Proximal Policy Optimization Algorithms <a href="https://doi.org/10.48550/arXiv.1707.06347">https://doi.org/10.48550/arXiv.1707.06347</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f1d8446f1ba9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Various Syntax Analyzer Tools]]></title>
            <link>https://medium.com/@fatima.khatib20/various-syntax-analyzer-tools-c835a260122c?source=rss-f4855d52c652------2</link>
            <guid isPermaLink="false">https://medium.com/p/c835a260122c</guid>
            <category><![CDATA[syntax-analysis]]></category>
            <category><![CDATA[syntax-analyzer-tools]]></category>
            <category><![CDATA[parser]]></category>
            <category><![CDATA[yacc]]></category>
            <dc:creator><![CDATA[Fatima Khatib]]></dc:creator>
            <pubDate>Sat, 29 Apr 2023 11:46:59 GMT</pubDate>
            <atom:updated>2023-11-22T18:52:46.036Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Authors :</em> Akshay Manchekar, <a href="https://medium.com/u/98935c02673">Amogh Dixit</a>, <a href="https://medium.com/u/d69b9a1b5985">AYUSH INGLE</a>, <a href="https://medium.com/u/f4855d52c652">Fatima Khatib</a></p><p>Syntax analyzers, also known as parsers, are tools used in computer programming to analyze and interpret the structure of a program’s source code. These tools are critical in ensuring that code is syntactically correct and adheres to the rules of the programming language being used. In this blog, we will explore various syntax analyzer tools and their features.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*wM8hMqWCc65KRXNbr5v6ZA.png" /></figure><h3>What is Syntax Analysis?</h3><p>Syntax analysis is typically performed by a parser, which takes in the input code and generates a parse tree or abstract syntax tree (AST) representing the structure of the code. The parser uses a grammar or set of rules to determine the syntactic structure of the input code and to identify any syntax errors or ambiguities.</p><p>The output of the syntax analysis phase is a structured representation of the input code that can be used for subsequent analysis or translation steps, such as semantic analysis or code generation.</p><p>Syntax analysis is an important component of the compilation process, as it enables the compiler to identify and report syntax errors to the user and to generate executable code from the input source code.</p><h3>What is a Syntax Analyzer ?</h3><p>A syntax analyzer, also known as a parser, is a component of a compiler or interpreter that analyzes the syntax of the source code written in a programming language. The main purpose of a syntax analyzer is to check whether the source code adheres to the rules and structure defined by the language’s grammar, and to generate an abstract syntax tree (AST) or parse tree from the input code.</p><p>During the compilation process, the syntax analyzer receives the input code in the form of a sequence of tokens generated by the lexer or scanner component of the compiler. These tokens are the basic building blocks of the source code and represent the keywords, identifiers, operators, and other language constructs that make up the code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/950/1*wFAkYza3pshGBfTflfr3wQ.png" /></figure><p>The syntax analyzer reads these tokens and checks whether they conform to the rules of the language’s grammar. The grammar is a set of rules that define the valid syntax of the language, including rules for constructing expressions, statements, and other language constructs. The syntax analyzer uses the grammar to generate a parse tree or AST, which represents the syntactic structure of the input code.</p><p>The parse tree or AST is a hierarchical structure that shows how the input code is organized according to the rules of the grammar. Each node in the tree represents a language construct, such as an expression, statement, or function call, and the children of each node represent its subcomponents. The parse tree or AST can be used for further analysis and processing by the compiler or interpreter, such as generating intermediate code, performing optimizations, or executing the program.</p><p>There are various algorithms that can be used to perform syntax analysis, including top-down parsing, bottom-up parsing, and recursive descent parsing. The choice of algorithm depends on factors such as the complexity of the grammar, the performance requirements of the parser, and the desired error reporting capabilities.</p><p>Overall, the syntax analyzer is a critical component of the compilation process, as it ensures that the input code is syntactically valid and can be processed by the compiler or interpreter.</p><h3>Various Syntax Analyzer Tools</h3><p>Various Syntax Analyzer tools currently used in the market are :</p><p>● ANTLR (Another Tool for Language Recognition)</p><p>● Bison</p><p>● Flex and Bison</p><p>● JavaCC (Java Compiler Compiler)</p><p>● PyParsing</p><p>● GNU bison</p><p>● Coco / R</p><h4>ANTLR</h4><p>ANTLR (ANother Tool for Language Recognition) is a powerful parser generator that can generate parsers in a variety of programming languages, including Java, C#, Python, and JavaScript. It uses a context-free grammar (CFG) to describe the syntax of the language being parsed, and can generate a parse tree or an abstract syntax tree (AST) that can be further processed by the application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/347/1*DD3oJKxwj5KRSG5U8U3Rqw.png" /></figure><p>ANTLR is widely used in industry and academia to build complex language tools, such as compilers, interpreters, and source code analysis tools. It is known for its high-performance and scalability, as well as its ease of use and flexibility.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/545/1*41w-F0ONBPOCNVpcnewBSg.png" /></figure><p>Here is an example of using ANTLR to parse a simple expression:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/646/1*4S37hOArm8k5_TVdomurPA.png" /></figure><h4>Bison</h4><p>Bison is a powerful and widely-used parser generator that is part of the GNU Compiler Collection (GCC). It is based on the YACC (Yet Another Compiler Compiler) parser generator, but includes a number of enhancements and improvements.</p><p>Bison uses a context-free grammar (CFG) to describe the syntax of the language being parsed, and can generate a C or C++ parser that can be used in a variety of applications, including compilers, interpreters, and source code analysis tools. Bison is known for its high-performance and flexibility, as well as its extensive documentation and active user community.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/524/1*o3IYCjG2ES_mL11PnnY8sw.png" /></figure><p>Here is an example of using Bison to parse a simple arithmetic expression:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/656/1*x0rcZtp-fApAWtsA7FBH3g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/674/1*4wXZQ3VrlWT5TWqR3luWtA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/676/1*xdFpO150krLvt5X3gYMKTg.png" /></figure><h4>Flex and Bison</h4><p>Flex and Bison are a popular combination of tools for building compilers and other language tools. Flex (Fast Lexical Analyzer Generator) is a tool for generating scanners, which are used to break input text into tokens, while Bison is a tool for generating parsers, which are used to analyze the structure of the input text based on a context-free grammar.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/657/1*bosNI-8QPK0tLcFZxjfjtA.png" /></figure><p>Flex and Bison are often used together to build compilers and interpreters for programming languages, as well as other language tools such as source code analyzers and code generators. They are known for their speed, flexibility, and ease of use.</p><p>Here is an example of using Flex and Bison together to parse a simple arithmetic expression:</p><p>Lexer.l:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*P3JPFsrd_ddpsQGi7KCPoA.png" /></figure><p>Parser.y:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/699/1*UU9OV_iQtGsMyPJBrkybSA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/625/1*DDERiWWEoMGw9x2UMMJRrA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/632/1*jwHyY1gYZRLoFiBxqLNHgA.png" /></figure><h4>JavaCC</h4><p>JavaCC (Java Compiler Compiler) is a parser generator for Java that is designed to be easy to use and highly customizable. It uses a context-free grammar (CFG) to describe the syntax of the language being parsed, and can generate a Java parser that can be used in a variety of applications.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/971/1*PvbIfDFn2ak6oiqS3H25JQ.png" /></figure><p>JavaCC is known for its simplicity and flexibility, as well as its extensive documentation and user community. It is often used in educational settings to teach students about compiler construction, as</p><p>well as in industry to build language tools such as compilers, interpreters, and source code analysis tools.</p><p>Here is an example of using JavaCC to parse a simple expression:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/676/1*WVKJzqQmN-QyTHH_OMnD1A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/671/1*b5LyRTb5vYZar-8ikd48sQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/667/1*L8ouUNUQmqeRj4pMKRkcXA.png" /></figure><h4>PyParsing</h4><p>PyParsing is a Python library that is used to create parsers for text-based input. It is designed to be easy to use and provides a simple interface for defining grammars and parsing input. PyParsing generates a parse tree for the input code and provides support for error handling and recovery.</p><h4>GNU bison</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/392/1*_QNZr0wk5bMUBDfgqbc5CA.png" /></figure><p>GNU bison is a parser generator that is used to create parsers for programming languages. It generates a parser for a given input grammar and provides support for both bottom-up and LALR(1) parsing algorithms. GNU bison generates a parse tree for the input code and provides support for error handling and recovery.</p><h4>Coco/R</h4><p>Coco/R (short for Compiler-Compiler/Recursive-descent) is a compiler generator that can be used to generate syntax analyzers, among other compiler components, for programming languages. It uses a top-down recursive descent parsing algorithm to generate a syntax analyzer from a grammar specification written in the EBNF (Extended Backus-Naur Form) notation.</p><p>Coco/R also provides support for error handling, allowing the syntax analyzer to report syntax errors in a user-friendly manner. Error recovery strategies can also be defined to enable the parser to recover from syntax errors and continue parsing the input code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/642/1*G3Erw-U_tUcHG2XswfTJxA.png" /></figure><p>Here is an example of a grammar specification in EBNF notation for a simple arithmetic language, and the corresponding Coco/R code for generating a syntax analyzer in Java:</p><p>EBNF Grammar Specification:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/739/1*N1gEF05tDoOzBChvvC5qgA.png" /></figure><p>Coco/R Code for Java Syntax Analyzer:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*TA_xbdqxiM8gLcHDkC5IkQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/737/1*bTDtRYVJseuETDeH5WEiXA.png" /></figure><p>This code defines the lexer rules for the language’s tokens, including the digits, arithmetic operators, and parentheses. It then defines the syntax rules for the language’s expressions, terms, factors, and numbers, using the EBNF notation.</p><h3>List of softwares built using these compilers</h3><p>Some popular software tools built using the syntax analyzer tools we discussed:</p><h4>ANTLR</h4><p>● Apache Cassandra — a distributed NoSQL database management system</p><p>● Gradle — a build automation tool for Java and other JVM languages</p><p>● Hibernate — an object-relational mapping (ORM) framework for Java</p><p>● Apache Lucene — a search engine library for Java</p><h4>Bison</h4><p>● GCC (GNU Compiler Collection) — a suite of compilers for several programming languages</p><p>● Clang — a C and C++ compiler</p><p>● PostgreSQL — an open-source relational database management system</p><p>● Apache HTTP Server — a web server software</p><h4>Flex and Bison</h4><p>● SQLite — a self-contained, serverless, zero-configuration SQL database engine</p><p>● GNU Awk — a powerful text-processing utility</p><p>● GIMP (GNU Image Manipulation Program) — a raster graphics editor</p><p>● Vim — a highly configurable text editor</p><h4>JavaCC</h4><p>● Apache Maven — a build automation tool for Java</p><p>● Apache Tomcat — a web application server for Java</p><p>● jOOQ — a Java database abstraction layer for building type-safe SQL queries</p><p>● Hadoop — a distributed computing platform for storing and processing large datasets</p><p>Note that these are just a few examples, and there are many other software tools built using these syntax analyzer tools.</p><h3>Which is the best syntax analyzer tool ?</h3><p>It’s difficult to say which syntax analyzer tool is the “best” as each tool has its own strengths and weaknesses, and the choice of tool ultimately depends on the specific requirements of the project.</p><p>That being said, some factors that might influence the choice of syntax analyzer tool include:</p><p>● The programming language being used</p><p>● The complexity of the language being parsed</p><p>● The performance requirements of the application</p><p>● The need for customization and flexibility</p><p>● The level of community support and available documentation</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/652/1*ZVq9IJatsBSg0KsbNS1o7Q.png" /></figure><p>ANTLR and Bison are both popular and powerful syntax analyzer tools that are widely used in industry and academia. Flex and Bison are also a popular combination of tools for building compilers and interpreters. JavaCC is another popular tool specifically for Java-based applications.</p><p>Ultimately, the choice of tool depends on the specific requirements and constraints of the project, and it’s important to carefully evaluate different tools and weigh their pros and cons before making a decision.</p><h3>Which tool is used the most ?</h3><p>It’s difficult to determine which syntax analyzer tool is used the most, as usage patterns can vary depending on factors such as programming language, industry, and individual preference.</p><p>That being said, ANTLR is a very popular tool for building parsers and is widely used in industry and academia. It is known for its high-performance and scalability, as well as its ease of use and flexibility. Many well-known software tools and libraries are built using ANTLR, including Hibernate, Apache Lucene, and Gradle.</p><p>Bison is also a widely-used tool, especially in the open-source software community. It is part of the GNU Compiler Collection (GCC) and is known for its power and flexibility. Many open-source compilers and interpreters are built using Bison, including GCC itself and Clang.</p><p>Flex and Bison are also a popular combination of tools, and are commonly used together to build compilers and interpreters. They are known for their speed and ease of use, and are often used to build small to medium-sized language tools.</p><p>JavaCC is a popular tool specifically for building parsers in Java-based applications. It is known for its simplicity and ease of use, and is often used in educational settings to teach students about compiler construction.</p><p>Overall, the choice of syntax analyzer tool depends on the specific requirements and constraints of the project, and there is no one-size-fits-all solution. It’s important to carefully evaluate different tools and weigh their pros and cons before making a decision.</p><h3>Conclusion</h3><p>Syntax analyzer tools are an important component of the software development process, particularly when building compilers, interpreters, and other language-based tools. These tools help to automate the process of parsing and analyzing input code, and can save significant time and effort when building complex language-based applications.</p><p>There are several popular syntax analyzer tools available, including ANTLR, Bison, Flex, and JavaCC, each with their own strengths and weaknesses. The choice of tool depends on factors such as the programming language being used, the complexity of the language being parsed, performance requirements, and the level of customization and flexibility needed.</p><p>When selecting a syntax analyzer tool, it’s important to carefully evaluate different options and weigh their pros and cons before making a decision. Ultimately, the tool chosen should be well-suited to the specific requirements and constraints of the project, and should be able to efficiently and accurately parse and analyze input code.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c835a260122c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cybercrime and Solutions]]></title>
            <link>https://medium.com/@fatima.khatib20/cybercrime-and-solutions-9a6107aa6b94?source=rss-f4855d52c652------2</link>
            <guid isPermaLink="false">https://medium.com/p/9a6107aa6b94</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[cybercrime]]></category>
            <category><![CDATA[cyber-security-solutions]]></category>
            <category><![CDATA[cyber-security-awareness]]></category>
            <category><![CDATA[cyberattack]]></category>
            <dc:creator><![CDATA[Fatima Khatib]]></dc:creator>
            <pubDate>Thu, 20 Apr 2023 18:10:57 GMT</pubDate>
            <atom:updated>2023-05-02T18:02:16.756Z</atom:updated>
            <content:encoded><![CDATA[<p>Authors: Akshay Manchekar, <a href="https://medium.com/u/98935c02673">Amogh Dixit</a>, <a href="https://medium.com/u/d69b9a1b5985">AYUSH INGLE</a>, <a href="https://medium.com/u/f4855d52c652">Fatima Khatib</a></p><p>Rapid technology advancements have opened up a wide range of new options and productive sources for businesses of all sizes. The internet has been a major driver of technological advancement. The internet has made the globe smaller by bringing far-off items closer together. The internet has evolved into a national resource and is now essential to maintaining overall national security. But along with these novel risks, such as cybercrime, came new technologies. Cybercrime is any crime that involves the use of a computer, such as hacking, spamming, phishing, etc.</p><h3>Introduction to Cybercrime</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/0*BrWoLjrrBJHtjUTz" /></figure><p>Cybercriminals steal users’ personal computers, smartphone data, personal information from social media, commercial secrets, and other information using the internet and computer technology. Criminals who engage in these unlawful online operations are known as hackers. Even while law enforcement organisations are working to address this issue, it keeps becoming worse and more people are falling prey to identity theft, hacking, and dangerous software. Using opaque security that uses a single system of software and hardware to verify any information that is accessed via the Internet is one of the greatest ways to block these crooks and secure critical information. Let’s learn more about online crimes.</p><h3><strong>Causes of Cybercrime</strong></h3><p>Cybercriminals always choose the fastest path to huge profits. They target wealthy individuals or wealthy institutions where a lot of money is transacted daily, such as banks, casinos, and financial corporations, and they hack private data from these targets. It is challenging to apprehend such crooks. As a result, there are now more cybercrimes occurring worldwide. Because of their vulnerability, computers must be protected and secured from cybercriminals by regulations. The following reasons for computers’ susceptibility could be listed:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/0*7M7wZjICDmO76WLP" /></figure><ul><li><strong>Difficult to protect</strong>: a computer system against unauthorised access since there are numerous ways for a breach to occur because the technology is so advanced. Access codes, retinal pictures, sophisticated voice recorders, etc. that can easily trick biometric systems and get past firewalls can be stolen by hackers and used to get past numerous security systems.</li><li><strong>Ability to store data</strong>: in a relatively small amount of space — The computer has the special ability to store data in a very little amount of space. This makes it much simpler for individuals to steal data from other storage systems and utilise it for their own financial gain.</li><li><strong>Complexity</strong>: The operating systems that power computers are composed of millions of lines of code. Because the human mind is flawed, mistakes can be made at any point. Cybercriminals profit from these openings.</li><li><strong>Negligence</strong>: One of the traits of human behaviour is negligence. Therefore, it’s possible that we could act negligently while protecting the computer system, giving cyber criminals access to and control of the computer system.</li><li><strong>Loss of evidence</strong>: Information pertaining to the crime is quickly erasable. Loss of evidence has thus become a very prevalent and evident issue that paralyses the method used for conducting cybercrime investigations.</li></ul><h3><strong>Types of Cybercrimes</strong></h3><p>The most prevalent cybercrimes are described below, while there are many others.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/0*6VCY1frMBS6GQ2fK" /></figure><ul><li><strong>Hacking</strong>: It is a straightforward phrase that describes transmitting unauthorised commands to any other computer or network. In this instance, a person’s computer has been compromised, allowing access to personal or sensitive data. The offender may not be aware that his computer has been accessed remotely since he utilises a variety of software to break into the victim’s PC. Government websites are frequently a top target for hackers since doing so helps them become more well-known, which is then fueled by aggressive media attention. This differs from ethical hacking, which is a technique employed by many organisations to assess the effectiveness of their Internet security measures.</li><li><strong>Piracy or theft</strong>: When someone downloads software, music, movies, or games while violating the copyrights of those works, a crime is committed. Even peer-sharing websites that promote software piracy exist, and the FBI is currently targeting many of these websites. The legal system is currently dealing with this cybercrime, and there are rules that forbid unauthorised downloading. Film directors and producers are frequently the targets of this crime.</li><li><strong>Cyber Stalking</strong>: This is a form of internet harassment where the victim receives a deluge of emails and messages. These stalkers typically know their targets, so instead of engaging in offline stalking, they turn to the Internet. To make the victims’ lives worse, they start offline stalking in addition to cyberstalking if they observe that it is not having the desired impact.</li><li><strong>Cyber Terrorism</strong>: Information warfare, commonly referred to as cyber terrorism, is an act of Internet terrorism that involves planned, extensive, and disruptive attacks on computer networks using computer viruses, or actual physical attacks employing malware, to target specific people, governments, and organisations. The purpose of terrorism is to instil a sense of terror in the victims’ thoughts. By keeping this idea in mind, it is simpler to distinguish between cyberattacks and acts of cyberterrorism that are motivated by financial or narcissistic gain. The main focus of a cyber terrorist’s operations is to cause harm and destruction.</li><li><strong>Identity Theft</strong>: With more individuals using the Internet for banking and currency transactions, this has grown to be a significant issue. In this type of cybercrime, a criminal gains access to a victim’s bank account, credit cards, debit card, Social Security number, and other personal information in order to steal money or make online purchases in the victim’s name. It may cause the victim to suffer significant financial losses and possibly damage their credit history.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/0*qc0_9z-pvvP3mVVX" /></figure><ul><li><strong>Computer Vandalism</strong>: Computer vandalism is a form of harmful behaviour that involves disrupting businesses and perhaps causing damage to computers and data. The construction of malicious software intended to carry out damaging actions like deleting hard drive data or stealing login credentials is a common method of computer vandalism. Computer theft is distinct from viruses, which affix themselves to already-running software.</li><li><strong>Malicious Software</strong>: These are software or programmes that run through the Internet and are used to interfere with networks. The software is used to access a system in order to steal confidential data or information or to harm any installed software.</li><li><strong>Fraud Calls and Emails</strong>: It’s likely that you’ve heard a lot about this crime and that you’ve also gotten calls like these scams. Vishing, or voice phishing, is the term used to describe it. The perpetrator of this kind of crime gets in touch with you by pretending to be an employee of a bank and calling about your bank account or credit cards via phoney texts, calls, or emails. He requests private information such as passwords, OTPs, and ATM card information, or he requests that the user click on a link that he has supplied. You will lose the money in your account if you unwisely trust them and divulge the information.</li><li><strong>Fake News Sharing in Social Media</strong>: Some online thugs only use social networking platforms to disseminate social, religious, and political rumours. This impresses regular people, who unintentionally share links or posts shared on social media by strangers. Remember that publishing any unauthorised links or posts on social media falls under the area of cybercrime, which exposes the user to legal punishment. Therefore, stay away from them and avoid working on social media on someone else’s behalf because doing so could wreck your entire life.</li><li><strong>Online Illegal Selling</strong>: On an illicit online marketplace, a criminal sells the victim illegal weapons, drugs, smuggled items, or personal information while also conducting the transaction using cryptocurrency. It encourages both black marketing and terrorism. The Dark Web, for instance, is content from the World Wide Web that is present on Darknets and networks but can only be accessed with particular software, setup, or authorisation. On this website, every unlawful activity is transacted. You could be thinking that if something is illegal, very few people would use it. However, you would be wrong because there are millions of users worldwide, and that number is growing every day.</li></ul><h3><strong>Cybercrime Solutions</strong></h3><p>Establish multifaceted public-private partnerships with law enforcement organisations, the information technology sector, information security organisations, internet firms, and financial institutions to combat cybercrime. Cybercriminals do not compete with one another for dominance or control like they do in the physical world. Instead, they cooperate to develop their abilities and even support one another in finding new opportunities. Therefore, the traditional means of criminal justice cannot be applied to cybercriminals.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/878/0*rASqM8YR18e24IjZ" /></figure><p>Utilising the solutions offered by Cross-Domain Solutions is the most effective course of action. This enables organisations to employ a single system made up of both software and hardware to authenticate information access and transfer when it occurs between different security classification levels. This enables smooth information sharing and access inside a certain security classification, but prevents information from being intercepted or accidentally released to users outside of that security classification. This promotes the security of the network and the systems connected to it.</p><p><strong>Use Strong Passwords</strong>: Keep unique username and password combinations for each account, and avoid writing them down. With certain assaulting techniques, such as Brute force attacks and Rainbow table attacks, weak passwords are easily broken. You can take the following security measures to guard against password hacking:</p><ul><li>Creating passwords with keyboard patterns. such like qwertyui</li><li>Utilising simple combination. such as Raju1990 and Feb1990</li><li>Use the default passwords. like Welcome123 and Ravi123</li><li>Keeping the username and password the same. such as Raju/Raju</li></ul><p><strong>Social Media Savvy</strong>: Keep your social media accounts (such as those on Facebook, Twitter, YouTube, etc.) set to private. Verify your security settings to be sure. Take care when posting information online. Once something is online, it remains there permanently.</p><p><strong>Secure your Mobiles</strong>: Many individuals are unaware that hazardous software like computer viruses and hackers may also infect mobile devices. Make cautious to only get software from reliable sources. Maintaining an updated operating system is also essential. Install antivirus software and utilise a safe lock screen in addition. Otherwise, if you misplace your phone or merely leave it on the table for a little while, anyone can access all of your sensitive information. Even worse, someone may put malicious software on your computer and use your GPS to track your every move.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/0*_qUEF7z68Ld-pI1l" /></figure><p><strong>Protect Your Data</strong>: For your most sensitive information, such as financial records and tax returns, use encryption to safeguard your data. By learning about frauds and hacking techniques online, one can keep one step ahead of the hacker. Fishing is a well-known hacking technique, however by gathering knowledge on the most recent fishing assaults from the Internet, one can avoid any scams. Therefore, be cautious and warn your neighbours about these scams.</p><p><strong>Computer Security Updates</strong>: Applying patches and other software fixes as soon as they are made available is one of the best strategies to prevent hackers from accessing your computer. By keeping your computer updated, you prevent hackers from exploiting software faults (vulnerabilities) that they would otherwise use to gain access to your system.</p><p><strong>Use Antivirus</strong>: For basic online security, a variety of security programmes are required. Firewalls and antivirus software are crucial components of security software. The first line of defence for your computer is typically a firewall. It regulates what and who is allowed to communicate online with your computer. A firewall could be compared to a kind of “policeman” who keeps an eye on all data that is trying to enter and exit your computer over the Internet, permitting communications that it knows are secure and preventing “bad” traffic like attacks from ever getting to your computer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/659/0*TycwezbvE7Ggc19n" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/675/0*Ao1oVIXitpg6lWQ1" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/0*-_T84lgghKx8iZjV" /></figure><h3>A Close Look At Some Cybercrimes of India</h3><h4><strong>SBI Data Breach 2019</strong></h4><p>In July 2019, it was reported that the State Bank of India (SBI), the country’s largest bank, had suffered a data breach that affected about 1.3 million of its customers. The breach was caused by a vulnerability in the bank’s website, which allowed unauthorized access to customer information such as names, addresses, phone numbers, and bank account details.</p><p>The breach was discovered after a security researcher reported the vulnerability to the bank. SBI initially denied that any customer data had been compromised, but later acknowledged the breach and said that it had taken steps to fix the vulnerability.</p><p>SBI also said that it had reset the passwords of all affected customers and was monitoring their accounts for any suspicious activity. The bank also advised its customers to change their passwords and be vigilant about any unauthorized transactions on their accounts.</p><p>The State Bank of India (SBI) data breach of 2019 was a case of a phishing attack. The attackers sent fraudulent phishing emails to SBI customers, which appeared to be from the bank. These emails included a link that redirected the customers to a phishing website that looked like the SBI’s official website. Customers who entered their login credentials on this fake website unwittingly gave away their login credentials to the attackers. The attackers then used these stolen credentials to gain access to the customers’ bank accounts and steal money.</p><p>The incident raised concerns about the security of Indian banks and their ability to protect customer data. The Reserve Bank of India, the country’s central bank, subsequently issued a notification to all banks asking them to strengthen their security systems and take steps to prevent similar incidents in the future.</p><h4><strong>Upstox Data Breach 2021</strong></h4><p>In April 2021, Upstox, an Indian online stock trading platform, reported a security breach where unauthorized individuals gained access to the company’s database. The data breach was detected by the company’s security systems, and all clients’ funds and securities remained safe.</p><p>However, personal data of nearly 2.5 million Upstox customers was compromised, including their names, email addresses, dates of birth, and contact information and KYC details. The company immediately informed the relevant authorities, including the Indian Computer Emergency Response Team (CERT-In), and started an investigation.</p><p>Upstox confirmed that its customers’ funds and securities remained unaffected, and the company took immediate steps to enhance its security measures and prevent such incidents in the future. The company also advised its users to change their passwords and take necessary precautions to protect their personal information.</p><p>It is not clear who was behind the attack on Upstox, and the investigation into the matter is ongoing.</p><h4><strong>Dominoes India Cyberattack 2021</strong></h4><p>In April 2021, a group of hackers claimed to have breached the systems of the Indian franchise of Domino’s Pizza, a popular pizza chain in India. The hackers claimed to have accessed 13 TB of data, including customer details such as names, phone numbers, email addresses, and delivery addresses. They also claimed to have access to internal company files and financial data, and threatened to release the data publicly if their ransom demand was not met.</p><p>The attackers used a method known as “double extortion”, in which they not only stole the data but also demanded a ransom payment to prevent the data from being released or sold on the dark web. Domino’s India initially denied any data breach, but later acknowledged the incident and stated that they had taken appropriate measures to prevent any further damage. It is not clear whether the company paid the ransom or not.</p><p>The attack is believed to be the work of a cybercrime gang known as “Ragnar Locker”, which has been involved in similar attacks on other companies worldwide. The motive behind the attack is believed to be financial gain. The incident highlights the need for companies to take adequate measures to protect their data and systems from cyber threats.</p><p>As per the reports, the hackers demanded a ransom of 10 crores ($1.3 million) in cryptocurrency from Jubilant FoodWorks, which operates Domino’s Pizza in India, to avoid leaking stolen data. However, the company refused to pay the ransom and instead chose to work with cybersecurity experts to investigate and resolve the issue.</p><h3><strong>Conclusion</strong></h3><p>Today, there are a lot of hackers all around the world. While many public and private organizations, like the CBI, and state police, are working to find these hackers, we too have a responsibility to secure our personal information from online theft. In addition, it is important to educate illiterate individuals about computers, debit and credit cards, the internet, and other technology. Because they sit in one nation and access the computer from another, we are aware that it might be challenging to detect these hackers. The best way to prevent this is for us to be watchful and vigilant, and to always use strong and unique IDs and passwords online.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9a6107aa6b94" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AI in Search Engines]]></title>
            <link>https://medium.com/@fatima.khatib20/ai-in-search-engines-65531581972d?source=rss-f4855d52c652------2</link>
            <guid isPermaLink="false">https://medium.com/p/65531581972d</guid>
            <category><![CDATA[search-engines]]></category>
            <category><![CDATA[google-search]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[search-queries]]></category>
            <dc:creator><![CDATA[Fatima Khatib]]></dc:creator>
            <pubDate>Thu, 20 Apr 2023 17:17:12 GMT</pubDate>
            <atom:updated>2023-04-20T17:55:31.507Z</atom:updated>
            <content:encoded><![CDATA[<p>Authors: Akshay Manchekar, <a href="https://medium.com/u/98935c02673">Amogh Dixit</a>, <a href="https://medium.com/u/d69b9a1b5985">AYUSH INGLE</a>, <a href="https://medium.com/u/f4855d52c652">Fatima Khatib</a></p><p>In this blog we would be discussing how AI is used in search engines, what are search queries, how searches are ranked in a search engine, a brief discussion on voice search and image search and we would be concluding by listing down the best AI search engines in the industry.</p><h4>WHAT IS AI FOR SEARCH?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/958/0*v5MfresMQZyiuriU" /></figure><p>A variety of intelligent technologies with the capacity to learn and advance on their own are referred to collectively as AI.</p><p>You may be familiar with terms like “machine learning,” “deep learning,” “neural networks,” “voice search,” “computer vision,” “image recognition,” “natural language generation,” and “NLP” that refer to various AI technologies.</p><p>Despite the fact that these technologies do different tasks and are at various stages of development, they are all regarded as AI.</p><p>A few years ago, Gmail could anticipate the simple words and phrases you would type next. After learning from billions of emails, it is now able to complete entire phrases for you. The same kind of AI technology is currently improving to the point where it can generate full articles on its own.</p><p>AI is more potent than the conventional software that came before it because of its capacity for learning. Additionally, it explains why any modern search engine must incorporate AI.</p><p>Almost every component of a search engine is powered by AI, including the following:</p><ul><li>Indexing every page that is posted online and comprehending its information</li><li>Analyzing search results by interpreting human words</li><li>Matching requests to the most precise, top-notch results</li><li>Assessing and reassessing material quality to stably enhance search outcomes</li></ul><p>Every search result you see, in fact, is a direct outcome of choices made by artificial intelligence.</p><p>Let’s take a close look at how search engines employ AI to gain a better understanding of how that functions.</p><h4>HOW IS AI USED IN SEARCH?</h4><p>AI is used in Search in the following ways :</p><ul><li>Search Rankings</li><li>Search Queries</li><li>Quality Control</li><li>Voice Search and Image Search</li></ul><p><strong>How are Searches ranked in a search engine ?</strong></p><p>Ranking web pages, movies, and other content for search results is the main application of AI in search engines.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/959/0*e1z_RmKbRyf5sdty" /></figure><p>Google (and other search engines) base their ranking of information on sophisticated AI. These AI systems’ algorithms have a number of criteria that give different factors — from the kinds of keywords in your content to the user experience of your site — priority.</p><p>These elements work together to assist Google’s AI choose which pages to return in response to your search.</p><p><strong>What are search queries ?</strong></p><p>Although search engines are computer programmes, they require the ability to comprehend human language in order to provide users with the information they seek.</p><p>In other words, search engines must comprehend your initial query in order to provide you with the appropriate content.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/959/0*9wLWH98jrns1LMl7" /></figure><p>That is an example of natural language processing (NLP), a branch of artificial intelligence (AI) that teaches computers to comprehend human written language.</p><p>NLP is being used by Google and Microsoft to better understand its users. The fourth-largest search engine in the world, Yandex, contains some cutting-edge NLP and machine learning capabilities, according to a University of Washington study.</p><p>Developers at Yandex discovered that they might use all of the prior searches made by users to improve current and future searches. They’ve raised click through rate by roughly 10% by producing these personalized search results.</p><p>In addition, Google search allows users to conduct a search using only a photo (which employs another type of artificial intelligence), and it optimizes search engine results based on recently performed searches, according to Search Engine Journal.</p><p>Today, Google has made some significant advancements in its comprehension of search queries. The business’s search engine now comprehends whole sentences using its pre-trained language model BERT. This indicates that BERT is capable of comprehending a search’s context in addition to its terms.</p><p><strong>How is Quality assured in Search Engines using AI ?</strong></p><p>The system was beaten back then by certain SEO “specialists” using dubious methods that have come to be known as “black hat SEO techniques.” The list goes on and on and includes aggressive keyword stuffing, cloaking, invisible text, etc. They were trying to game every search engine results page (SERP) they could, regardless of the method.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/917/0*x6DBSbDEV7CId6we" /></figure><p>Because the pages at the top of search results weren’t always the ones with the best content, this was obviously bad for search engines.</p><p>Companies now utilise AI to filter the high-quality material from the low-quality spam by updating their algorithms. Each of these “algorithm changes” has the potential to have a significant impact on how businesses rank their webpages and content in search.</p><p><strong>A Brief on Voice Search and Image Search</strong></p><p>AI has enabled newer search features like voice search and image search.</p><p>When using a Google Assistant, for example, AI technologies like NLP have improved to the point where they can now really interpret human voices in real-time. These AI-powered systems can transform your words into search results after understanding them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/955/0*mJ63Xdx99FRXuyu0" /></figure><p>The same is true with pictures. The content of an image can be identified using AI technologies like image recognition, which can subsequently produce pertinent search results related to that image.</p><p>Numerous other techniques exist for AI to affect the search process. But in order to receive the answers you need, you primarily interact with AI in these areas.</p><h4>HOW DOES GOOGLE USE AI IN SEARCHES?</h4><p>When people refer to Google’s “algorithm,” they typically mean the method by which it produces search results. When it comes to “algorithm changes” that affect their search traffic, many businesses are fascinated.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/967/0*IAsl9O7F_Zn_Pi7M" /></figure><p>However, Google’s “algorithm” isn’t made up of just one thing. What search results appear and how they appear are determined by a sophisticated web of AI-powered algorithms.</p><p>Nobody outside of the industry fully understands how these algorithms operate, but they frequently attempt to study some of its components in order to perform effective SEO.</p><p>Google, however, routinely provides instructions on how this AI system interprets search results. And this much is obvious:</p><p>Google’s artificial intelligence (AI) is tuned to deliver the best results possible for each search. That refers to the most relevant search result and the best user experience on the website, both in terms of content and overall quality.</p><p>Presently, the only effective approach to “beat the algorithm” is to provide exceptionally high quality material that is created for people.</p><p>A key component of artificial intelligence, <strong>RankBrain</strong>, powers Google search. This technique aids Google search in determining the subjects that are pertinent to your search.</p><p>Since Google can often tell what you’re looking for, this increases the accuracy of search results and prevents it from confounding your search phrases with terms that sound similar but have quite different meanings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/948/0*OHnmMI8KBmMPBY6p" /></figure><p>Google uses a sort of AI known as <strong>BERT — Bidirectional Encoder Representations from Transformers</strong> — to better grasp the meaning and intent of searches.</p><p>BERT analyses each word in a search query in relation to every other word in a sentence using artificial intelligence (AI) in the form of natural language processing (NLP), natural language understanding (NLU), and sentiment analysis.</p><p>From the beginning, Google search didn’t operate like this. Google’s AI used to process words sequentially, one at a time. The outcomes were precise but literal.</p><p>According to Google, a search such as “2019 brazil traveller to usa need a visa” in the past would have been read as a US traveller needing a visa for Brazil.</p><p><strong>Multitask Unified Model, or MUM</strong> for short, is a form of artificial intelligence that Google employs as a far more potent replacement for BERT.</p><p>MUM makes use of more potent AI approaches to comprehend search context, search purpose, and searches conducted in many languages. Google provided the following illustration of how MUM functions in a presentation:</p><p>For example, if you searched for “I’ve climbed Mt. Adams but now want to trek Mt. Fuji next autumn, what must I do better to prepare?” you might get the following results.</p><p>MUM can truly comprehend the context, which is currently challenging for search engines. MUM can provide details about the similarities and differences between the two mountains. Additionally, it can reveal information about the gear that performs well for the new journey.</p><h4>BEST AI SEARCH ENGINES IN THE MARKET</h4><p><strong>Neeva AI</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/863/0*qjjGx_KI7jF4O4_U" /></figure><p>Neeva AI works more like a real-time encyclopaedia search since the AI search engine it employs gives condensed answers with citations already built in, rather than a list of links. Even though not all of its queries consistently attempt to do so, its model strives to maintain the most latest information from the web. This is because it constantly updates. Hovering the cursor over the reference number next to each piece of the text displayed in summary will reveal the segment’s original source. This increases the believability of the summary.</p><p><strong>Bing AI</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/0*OBMM1urOakXDulNA" /></figure><p>GPT (the same technology that underpins ChatGPT) powers the integrated artificial intelligence that drives the Microsoft Bing chatbot. Recently, it was announced that ChatGPT will use an improved version of the same artificial intelligence (AI) technology that would power Microsoft’s Bing AI search engine’s most current iteration. The product will be available alongside upgraded artificial intelligence (AI) features for Microsoft’s Edge web browser, and together, they will transform how users access the web and conduct online research.</p><p><strong>Bard AI</strong></p><p>A set of deep learning algorithms referred to as “large language models” enables the Google Bard AI chatbot to generate text-based responses to questionnaires. The LaMDA-based Bard AI developed by Google is configured to search the web for the “most recent” answers to queries.</p><p>The business created Bard AI as an experimental service for conversational AI. Based on its encounters with people, Bard AI gets better at what it does.</p><p>It may help with tasks like organising a baby shower, giving movie reviews, and coming up with lunch menu ideas. Its goal is to offer solutions to complex problems in an approachable manner.</p><p><strong>WebChatGPT (It is a Google extension that makes ChatGPT real-time)</strong></p><p>A Google extension called WebChatGPT makes ChatGPT real-time. By adding relevant online results to your ChatGPT prompts, you may increase their usefulness. With the help of this addition, your ChatGPT prompts will incorporate pertinent internet results, enabling more precise and current talks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/972/0*MnVwbTR7Dtxeivo1" /></figure><p>ChatGPT is currently the best AI available which gives answers to almost every question except real time changes in the world. It can help students complete an assignment, help teachers make exam papers, help software developers to write code and can do many such tasks.</p><h4>CONCLUSION</h4><p>AI has a significant impact on the SEO industry and is expected to continue to do so in the future. By leveraging AI-powered tools and technologies, businesses can improve the visibility, rankings, and performance of their websites in search engines, and stay ahead of the competition.</p><h4>REFERENCES</h4><p>[1] <a href="https://analyticsindiamag.com/7-best-ai-based-search-engines/">7 Best AI-based Search Engines</a></p><p>[2] <a href="https://www.nature.com/articles/d41586-023-01273-w">AI science search engines are exploding in number — are they any good?</a></p><p>[3] <a href="https://geekflare.com/best-ai-search-engines/">8 Best AI Search Engines to Use as Google Alternatives</a></p><p>[4] <a href="https://searchengineland.com/how-ai-will-change-the-future-of-search-engine-optimization-385543">How AI will change the future of search engine optimization</a></p><p>[5] <a href="https://www.dailyhostnews.com/microsoft-open-sources-ai-algorithms-that-powers-bing-search-engine">Microsoft open sources AI algorithms that powers Bing search engine</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=65531581972d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>