<?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 Shweta Lokhande on Medium]]></title>
        <description><![CDATA[Stories by Shweta Lokhande on Medium]]></description>
        <link>https://medium.com/@shweta-lokhande19?source=rss-2adde524dae2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*3M7z97R4dKXXt9sw.jpg</url>
            <title>Stories by Shweta Lokhande on Medium</title>
            <link>https://medium.com/@shweta-lokhande19?source=rss-2adde524dae2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 18:13:36 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@shweta-lokhande19/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[AI in Image Generation from Text]]></title>
            <link>https://shweta-lokhande19.medium.com/ai-in-image-generation-from-text-a8eec61d296a?source=rss-2adde524dae2------2</link>
            <guid isPermaLink="false">https://medium.com/p/a8eec61d296a</guid>
            <dc:creator><![CDATA[Shweta Lokhande]]></dc:creator>
            <pubDate>Mon, 08 May 2023 18:17:13 GMT</pubDate>
            <atom:updated>2023-05-09T06:55:32.551Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/778/1*aE7pSnzrQEP-5IvvQlnynw.png" /></figure><h4>INTRODUCTION</h4><p>In recent years, there has been a lot of progress in the field of generative models, particularly in the area of image synthesis. One of the most exciting developments in this field is the ability to generate high-quality images from textual descriptions. This technology, known as text-to-image generation, has many potential applications, from creating realistic pictures for video games and movies to helping artists visualize their ideas.</p><p>Text-to-image generation is a form of generative modeling, a subfield of machine learning that is concerned with creating models that can generate new data that is similar to a given dataset. The idea behind text-to-image generation is to train a machine learning model on a dataset of paired textual descriptions and corresponding images. Once the model has been trained, it can generate new images based on textual input.</p><h4>SO, WHAT’S AN AI IMAGE GENERATOR?</h4><p>An AI image generator is a type of artificial intelligence (AI) algorithm that is trained to generate images or artwork. This technology uses deep learning algorithms, such as Generative Adversarial Networks (GANs) or Variational Autoencoders (VAEs), to create new images that resemble real-life photos or drawings.</p><p>Conditional GANs work by inputting a one-hot class label vector as input to the generator and discriminator in addition to the randomly sampled noise vector. This results in higher training stability, more visually appealing results, as well as controllable generator outputs. The difference between traditional Conditional-GANs and the Text-to-Image model presented is in the conditioning input. Instead of trying to construct a sparse visual attribute descriptor to condition GANs, the GANs are conditioned on a text embedding learned with a Deep Neural Network. A sparse visual attribute descriptor might describe “a small bird with an orange beak” as something like:</p><p>[ 0 0 0 1 . . . 0 0 . . . 1 . . . 0 0 0 . . . 0 0 1 . . .0 0 0]</p><p>The ones in the vector would represent attribute questions such as, orange (1/0)? small (1/0)? bird (1/0)? This description is difficult to collect and doesn’t work well in practice.</p><p>Word embeddings have been the hero of natural language processing through concepts such as Word2Vec. Word2Vec forms embeddings by learning to predict the context of a given word. Unfortunately, Word2Vec doesn’t quite translate to text-to-image since the context of the word doesn’t capture the visual properties as well as an embedding explicitly trained to do so does. Researchers present a novel symmetric structured joint embedding of images and text descriptions to overcome this challenge.</p><p>It’s important to note that text-to-image is a multi-modal task, as there can be many images for a given word. The AI image generator works by learning from a dataset of images, typically thousands or millions of them, and using this information to generate new, original images. The generated images may be similar to the training set or completely different, depending on the complexity of the model and the quality of the data.</p><p>AI image generators have a wide range of applications, including in art and entertainment, advertising, fashion, and product design. They can be used to create realistic product images for online shopping, generate 3D models of buildings and structures, and even create lifelike portraits and landscapes.</p><p>Overall, AI image generators have the potential to revolutionize the way we create and consume visual content, opening up new possibilities for creativity and innovation.</p><h4>AND, HOW DOES IT WORK?</h4><h4>There are several approaches to text-to-image generation</h4><ol><li><strong>VQGAN (<em>Vector Quantized Generative Adversarial Network</em>)</strong>:</li></ol><p>VQGAN is a GAN architecture that can be used to learn and generate novel images based on previously seen data. It was first introduced in the paper<a href="https://compvis.github.io/taming-transformers/?ref=blog.paperspace.com"> “Taming Transformers” (2021) by Esser, Rombach, and Ommer</a>. It works by first having image data directly input to a GAN to encode the feature map of the visual parts of the images. This image data is then vector quantized: a form of signal processing that encodes groupings of vectors into clusters accessible by a representative vector marking the centroid called a “codeword.” Once encoded, the vector quantized data is recorded as a dictionary of codewords, also known as a codebook. The codebook acts as an intermediate representation of the image data, which is then input as a sequence to a transformer. The transformer is then trained to model the composition of these encoded sequences as high-resolution images as a generator.</p><p>The main innovation of VQGAN — and what makes it so exciting — is the ability to input the image data directly into the transformer via the codebook encoding sequence autoregressively. In practice, the transformer is trained on a sequence of quantized tokens input from the codebook in an autoregressive way: it learns how to predict the next token’s distribution based on a sequence of previous tokens. This step decreases the prospective cost of generating such images immensely and allows for quicker processing of the image data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*fnHlMEVVOxr5zpmLNJL5Ag.png" /><figcaption>Fig.1.Sliding window works with image</figcaption></figure><p>The transformer also restricts the context of the image generation to “patches” of pixels via the sliding window. This allows the transformer to only consider the local context of a patch: only “looking” at neighboring patches for information when generating the image and improving resource efficiency.</p><p>In the end, the transformer outputs a high-resolution image generated either unconditionally or, as iterations of the training going on in something like VQGAN-CLIP go by, conditionally based on the context of the generation event.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/788/1*aGno0ULVYzZqWvQIOPtAOQ.png" /><figcaption>Fig.2.CLIP (Contrastive Language-Image Pretraining) process</figcaption></figure><p><strong>CLIP (Contrastive Language–Image Pre-training)</strong>: In simple terms,<a href="https://arxiv.org/abs/2103.00020?ref=blog.paperspace.com"> CLIP</a> is a model trained to assess the fit of a caption, compared to other captions in a set, to an image. CLIP is capable of zero-shot learning, enabling it to perform well even on unknown data. When applied in VQGAN-CLIP, CLIP is able to assess the quality of generated images compared to a user-inputted caption, and the outputted scores can be used as weights to “guide” the learning of the VQGAN to more accurately match the subject matter through recursive iteration.</p><p><strong>2. Stable Diffusion Method:</strong></p><p>Stable diffusion is a technique used in AI image generation to produce high-quality images with complex and diverse visual patterns. It is a type of generative model that is based on the idea of progressively refining a set of low-resolution images into high-resolution images using a diffusion process.</p><p>In a stable diffusion model, an initial image is first created by applying a series of random noise vectors to a small, low-resolution image. This initial image is then gradually refined using a diffusion process, where the image is exposed to a series of noise vectors with increasing levels of intensity. As the noise vectors are applied, the image becomes more complex and detailed, eventually converging on a high-resolution image with rich visual patterns and textures.</p><p>One of the key advantages of stable diffusion models is that they can generate high-quality images with very few training examples, making them particularly useful for tasks where large amounts of training data are not available. They are also very versatile and can be used for a wide range of image generation tasks, including image synthesis, super-resolution, and style transfer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/777/1*xLa8nIyUJRRCXSoOi8XbnA.png" /><figcaption>Fig.3.Stable Diffusion Process</figcaption></figure><p><strong>3. Variational autoencoders (VAEs)</strong></p><p>It is a type of neural network architecture that can be used for text to image generation. In VAEs, the encoder network takes in the textual description as input and maps it to a low-dimensional latent space. The decoder network then takes the latent code and generates the corresponding image. The key innovation in VAEs is the use of a probabilistic framework that allows for the generation of diverse images from a single textual input. The latent code produced by the encoder is sampled from a probability distribution, allowing for the generation of different images each time the network is run. This property is useful in applications where the diversity of generated images is important, such as in artistic or creative applications.</p><p>To train a VAE for text to image generation, the network is typically trained using a dataset of paired textual descriptions and corresponding images. The network learns to map the textual descriptions to the corresponding images in the training set, and the learned model can then be used to generate new images from novel textual descriptions. While VAEs have shown promising results in text to image generation, there are some limitations to the approach. One limitation is that VAEs can struggle with generating high-resolution or photorealistic images. Additionally, VAEs can sometimes generate blurry or low-quality images, which can be a drawback in applications where image quality is important. Despite these limitations, VAEs remain a powerful approach to text to image generation and continue to be an active area of research.</p><h4>HERE ARE THE AVAILABLE MODELS</h4><ol><li><strong>DALL-E 2</strong></li></ol><p>Developed by OpenAI, DALL-E 2 creates images based on textual descriptions. In addition to creating images for products (shoes, clothes, furniture), the AI is also capable of creating novel images that are unrelated to any existing scene or object (characters, landscapes) or even concepts (emotions, ideas). <a href="https://openai.com/dall-e-2/"><em>Try it here</em></a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/301/1*VzZetvSKfcyfjruuvPto3w.png" /><figcaption>Fig 4. A photo of a silhouette of a person in a color-lit desert at night, by DALL-E 2</figcaption></figure><p><strong>2. DALL-E Mini</strong></p><p>Dall-E Mini is the first model open AI released. This ai model has fewer capabilities than DALL-E 2 but can generate specific images, like tomatoes and apples. This model is free to use, and <a href="https://huggingface.co/spaces/dalle-mini/dalle-mini"><em>you can play with it here</em>.</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/302/1*gNtSZvUSm_FNuc1Lw8xM8Q.png" /><figcaption>Fig 5. Fruit Basket, by DALL — E Mini</figcaption></figure><p><strong>3. Stable Diffusion</strong></p><p>Stability ai created an open-source image generator called Stable Diffusion. Due to its open-source nature, anyone can use it and create tools they wish, which is why it is so popular today, and many products are built with it. Stable Diffusion allows the user to sketch a basic sketch, and it will convert it into another image or create an image based on another image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/326/1*zP0CJ76I-HDqdQH60KJKQQ.png" /><figcaption>Fig. 6.A girl running with an umbrella into pink clouds, by Stabile Diffusion</figcaption></figure><p>4. <a href="https://beta.dreamstudio.ai/"><strong>Dream Studio</strong></a></p><p>This app generates images based on the Stable Diffusion model. You can change some parameters like width and height.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/332/1*7Dpbrfk7UWu4p-2OfA02NA.png" /><figcaption>Fig. 7. Using dream studio</figcaption></figure><p>5. <a href="https://pinegraph.com/"><strong>Pinegraph</strong></a></p><p>As well as generating images based on the Stable Diffusion model, this website also offers tools for drawing and creating images with the computer. You can generate an image, draw on it, and ask the computer to create another one.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/331/1*sUzy0rZxbBfKMCJ_l1Paag.png" /><figcaption>Fig.8. Ai image generation using pinegraph</figcaption></figure><h4>WHAT ARE THE PROBLEMS WITH IT?</h4><p>There are some problems with this AI Image generation from text. These are given below:</p><ol><li>Lack of diversity and creativity in generated images: Current AI models may generate images that are similar or lack creativity due to the limited amount and variability of training data available.</li><li>Difficulty in capturing abstract concepts: AI models may struggle to generate images that capture abstract concepts, such as emotions or humor, which are often subjective and difficult to quantify.</li><li>Inability to handle complex scenes: Current AI models may have difficulty generating images that accurately depict complex scenes with multiple objects or interactions between them.</li><li>Over-Reliance on textual cues: AI models heavily rely on textual cues to generate images, and may not be able to generate images without a clear and detailed textual description.</li><li>Ethical concerns: There are concerns around the potential misuse of AI-generated images, such as the creation of deep fakes, which can be used to spread false information or manipulate public opinion.</li></ol><h4>CONCLUSION</h4><p>Text-based synthetic image generation can be a highly useful feature in various applications and business use cases ranging from training ML models that don’t have sufficient image data, chatbots to create contextual images to search engines and stock photos. The advancements in neural networks have made it possible to easily achieve this and with further improvements down the line, synthetic images can soon replace a lot of scenarios where real images are unavailable and expensive.</p><h4>REFERENCES</h4><p>[1] “<a href="https://towardsdatascience.com/text-to-image-a3b201b003ae">Text to Image</a>”, Connor Shorten, Jan 25, 2019</p><p>[2] “Text to Image using Deep Learning”, Akanksha Singh, Sonam Anekar, Ritika Shenoy, Sainath Patil, International Journal of Engineering and Technical Research, Marc 2022</p><p>[3] “Generating images from text using evolutionary algorithms and CLIP”, Maciej Domagała, DeepSense.AI, September 2021</p><p>[4] “An Introduction to Synthetic Image Generation from Text Data”, Suvojit Hore, Analytics Vidhya, January 2022</p><p>THANK YOU!</p><p>Authors: Dr.S.T.Patil, Akanksha Thokade, Tanaya Gogawale, Shweta Lokhande</p><p><strong>We hope you found this blog interesting, feel free to drop your queries in the comments below. Stay tuned for more.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a8eec61d296a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cloud storage]]></title>
            <link>https://shweta-lokhande19.medium.com/cloud-storage-441078dd948c?source=rss-2adde524dae2------2</link>
            <guid isPermaLink="false">https://medium.com/p/441078dd948c</guid>
            <category><![CDATA[cloud-storage]]></category>
            <dc:creator><![CDATA[Shweta Lokhande]]></dc:creator>
            <pubDate>Mon, 12 Dec 2022 04:43:22 GMT</pubDate>
            <atom:updated>2022-12-13T21:01:02.471Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/777/0*QmQZAXkhasCp7BVL" /></figure><h3><strong>WHAT IS A CLOUD AND CLOUD STORAGE?</strong></h3><p>Simply described, a cloud is a network of computers. It refers to an organization of PCs claimed by one individual or organization, where others or organizations can store their information. On your own machine, everything is put away on one actual stockpiling gadget — your hard drive. Cloud storage is a form of data storage, encompassing everything from files to apps, that is completely virtual. It refers to a virtual storage area that can span across many different physical storage devices.</p><p>When you use cloud storage, some of your files may be on a physical server in London while other files are on a physical server in California. So instead of keeping data physically on servers, data is hosted in an online environment. Using cloud storage can be compared to a hazy, unreachable object, much like a cloud itself, because the majority of users are unaware of where their physical files are.</p><h3>WHY DO WE NEED CLOUD STORAGE?</h3><p>Cloud storage is becoming a very popular means of storing and managing data for individuals and businesses alike, owing to factors such as cost-effective storage, flexibility and ease of use, data security and scalability. The market has witnessed a steady rise in the number of service providers foraying into the market, contributing to a multi-billion-dollar economy. Increasing number of companies are now setting aside a budget towards Cloud technology.</p><p><strong><em>Security:</em> </strong>Without a doubt, security is the main factor in users’ preference for cloud storage. The cloud offers you a safe and secure way to manage your data, unlike hard discs, which are more likely to become corrupted, destroyed, or worse, stolen, resulting in data loss. Cloud storage provides several backups across data centers, ensuring the security of your data so you can relax and concentrate on your business. Collaboration. This is a fantastic approach to boost individual and team productivity. Multiple people can simultaneously access, edit, and modify content for files stored in the cloud. Any authorized user, wherever they may be located, has easy access to all of your digital assets, which are all present in one area. It works.</p><p><strong><em>Scalability:</em> </strong>Scaling simply refers to a size change. It might go up or down. It entails adjusting to the escalating (or, conversely, dwindling) demands of any business requirements. If your company is now careless about the workload and data handling capacity, it is quite likely that as your company grows, you will eventually run out of hard drive space, to put it mildly. Scalability is the ability to handle increased workloads without changing or interrupting your current working methodology, and cloud storage makes this possible.</p><p><strong><em>Cost Savings:</em> </strong>This is perhaps the feather in the hat for Cloud’s USP. Traditionally, companies have been draining huge amounts of money in setting up and maintaining servers and hardware infrastructure. This in turn, also multiplies the manpower and maintenance costs. In a cloud model, your hardware needs and all associated inconveniences like purchase cost, maintenance and repair, are all taken care of by the vendor, allowing you and your staff to just focus on the core work. Cloud ultimately offers a bang for your bucks!</p><h3>HOW DOES CLOUD STORAGE WORK?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/492/1*JaNX2GiEIb5BE4YR2vyVdg.png" /></figure><p>A third-party cloud provider provides cloud storage, which is owned and operated by them and accessed over the Internet using a pay-as-you-go pricing model. The storage, privacy, and resilience of your data are managed by these cloud storage providers, making it available to business apps everywhere. Applications can use an Application Programming Interface (API) to access cloud storage or conventional storage protocols. Many providers offer complementary services to collect, store, protect, and analyze data at scale.</p><h3>WHAT DOES THE STRUCTURE OF CLOUD STORAGE LOOK LIKE?</h3><p>There is high demand for cloud storage in the market. Because cloud storage is suitable for the management of billions of files including metadata. Cloud storage services, therefore, use two alternatives to format the memory of their own servers:</p><p><em>· </em><strong><em>Block Storage</em></strong></p><p><em>· </em><strong><em>Object Storage</em></strong></p><p><em>· </em><strong><em>Block Storage: </em></strong><em>Block storage format for structured data</em></p><p>Block storage is a flexible and logically structured storage model in which all data is divided into data blocks of equal size, which in turn receive their own addresses. The addresses of the physical memory cells are abstracted, so the actual location of the storage units is irrelevant for file storage. The hard disk or server on which new data lands, how the individual blocks are to be arranged and how access to them works can be easily regulated by software. In the cloud, block storage is particularly suitable as a storage format for database applications and other programs that work with structured data.</p><p><em>· </em><strong><em>Object Storage</em></strong><em>: Object storage format for unstructured data</em></p><p>Object Storage is a storage system that stores files as objects, including the corresponding metadata. Each object receives a unique identification number that can be used by accessing applications to control it without the need for access control. It is not possible to modify saved objects — any changes will ensure that a new object is created that contains the customized version of the original file. This makes object storage the optimal cloud storage format for backup and archiving solutions. In addition, object-based management is well suited for storing multimedia files such as music, videos or movies that are read-only (for example, when using streaming services).</p><h3>TYPES OF CLOUD STORAGE</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/577/1*kEd3iEr3zrXgAQFUcXEHhQ.png" /><figcaption>Fig.1.Types of Cloud Storage</figcaption></figure><h4>· Public Cloud Storage</h4><p>As the name suggests, public cloud storage supports customers that need to utilize computer resources including its hardware and software. Basically, using a public cloud storage is like being tenants living in a big apartment with other people (company), and having a landlord (the service provider). Similarly as during the instance of loft lease, the expense of public cloud is lower than private cloud.So, who uses the public cloud ? Public clouds are mostly common for non-critical tasks such as file sharing or development and testing of an application, therefore small-scale companies with no private information use it. Anonymous users with the authority can also have access to the public cloud. Keep in mind that the service provider fully controls the public cloud storage, its hardware, software, and infrastructure.</p><h4>Some of the advantages of public cloud storage are:</h4><p>o Cost efficiency</p><p>o Consistent</p><p>o Vast flexibility</p><p>o Expert monitoring</p><h4>· Private cloud storage</h4><p>When we say “Private”, we can conclude that this cloud model is the infrastructure that is used solely by a single organization. The infrastructures found in private cloud storage can be managed either by the organization itself or by a specific service provided. Since a private cloud storage service is designed for individual needs, naturally, they are more expensive than other clouds. However, they are also known to be better in resolving the organization’s biggest fear, security, and privacy.So, who uses a private cloud? Private clouds are used by large enterprises who store sensitive and private information such as government agencies, financial institutions, and healthcare organizations. These private cloud infrastructures can be located either on-premises or with a third party.</p><p>The <strong><em>numerous advantages</em></strong> offered by the <strong><em>private</em></strong> <strong><em>cloud</em></strong> are:</p><p>o Security</p><p>o Vast flexibility</p><p>o High efficiency</p><p>o Ability to customize</p><h4>· Hybrid Cloud Storage</h4><p>A hybrid cloud storage crosses the concepts of private and public cloud infrastructures together. How is this possible exactly? When a hybrid cloud storage is used, critical data is stored in the organization’s private cloud, and the remaining data is stored in the public cloud. This method allows you to customize the features and modify it to your needs by using the resources given to you. When you think about it, both time and money is used efficiently by this method.</p><p><strong><em>So, who uses Hybrid cloud storage</em></strong><em>? </em>Many organizations utilize this specific model when they need to quickly upgrade their IT infrastructure. A hybrid cloud serves as an advantage to many businesses because of its flexibility.</p><p>The <strong><em>advantages </em></strong>of<strong><em> Hybrid cloud</em></strong> storage are:</p><p>o High flexibility</p><p>o Customizable</p><p>o Cost effective</p><p>o Time effective</p><p>o Easily Controllable</p><h4>· Community Cloud</h4><p>Lastly, we have the community cloud. This deployment model is dedicated to multiple organizations in the same community, which means it is not public, open to anyone in need. However, it is also not private, since there is more than one company using it. Some examples of community cloud are Banks, universities in common areas, or police departments within the same state. So, who uses community cloud storage? A simple answer to this would be the members of the community.</p><h4>Some of its advantages are:</h4><p>o Highly flexible to the needs of the community</p><p>o Cost efficient</p><p>o High security</p><p>There are many clouds storage services available, and many offer a free plan for a limited amount of space. Depending on your needs, a free plan might be plenty for you. This is a list of just a few available cloud storage services.</p><h3>CLOUD STORAGE SERVICES</h3><h4>· Dropbox.com</h4><p>Dropbox.com is one of the most popular cloud storage services available. It was started in 2007 by a man that kept forgetting to carry his flash drive around. Dropbox uses encryption to help keep your data secure and everything you upload is automatically private. Dropbox offers different plans for individuals and businesses, but it starts off by giving each individual 2 gigabytes of free storage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/457/0*KU2kR_xqcaUVfxVd" /><figcaption>Fig.2.Dropbox</figcaption></figure><h4>· Google Drive</h4><p>Google Drive allows users to store a variety of files. It offers clients the chance to import records to specific email addresses, publicly, or anybody that has the connection to the document. It provides 15 gigabytes of storage for free and if you have a Gmail address, you already have access to Google Drive. Google Drive likewise permits clients to team up and make changes to documents simultaneously. This can be helpful for teams and groups.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/438/0*ras-nE1QTrOv0RB-" /><figcaption>Fig.3. Google Drive</figcaption></figure><h4>· Apple iCloud</h4><p>iCloud was launched by Apple in 2011. It allows users to always have access to the latest information from their Apple devices (iPhone, iPad, Mac, etc.). iCloud is particularly useful for sharing photos, calendars, etc. with other users. You do not have to have an Apple device to have an iCloud account, but you can only access your information when using an Apple device or a PC to which you’ve downloaded the iCloud software. However, you can get web-only access to your account that allows you to create new documents — use ‘Pages’ to create letters, flyers, and more; use ‘Numbers’ to create spreadsheets, and use ‘Keynote’ to create presentations. You have 1 gigabyte of free storage for any documents you create in iCloud.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/425/0*qYyPTpgRFv1xE3Nu" /><figcaption>Fig.4.iCloud Drive</figcaption></figure><h4>· OneDrive</h4><p>One Drive is Microsoft’s distributed storage administration. It offers 7 gigabytes of free storage for new users and users can purchase additional storage space. It has Office Web Apps support, which means that users can create, edit and share Microsoft Office documents directly within a web browser. Amazon Cloud Drive Amazon.com offers a cloud storage service that gives users 5 gigabytes of free storage. If you have an Amazon.com account, you can log into the cloud storage service using your existing username and password.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/438/0*eSmK3-wlLbnnAaVj" /><figcaption>Fig.5. One Drive</figcaption></figure><h3>CLOUD STORAGE SECURITY BEST PRACTICES</h3><p>Cloud storage is changing into progressively standard as businesses move far away from ancient on-premises storage solutions. However, with the convenience of cloud storage comes the danger of knowledge breaches and different security threats. To confirm the protection of your knowledge, it’s necessary to follow best practices for cloud storage security. By following these best practices, you’ll be able to make sure that your information is secure and guarded from potential threats.</p><p>1. <strong>Encrypt Your Data</strong></p><p>Encryption is the method involved with changing information into a structure that can’t be perused by any individual who doesn’t have a way to unscramble it. This implies that regardless of whether somebody was to get to your distributed storage, they wouldn’t have the option to figure out the information without the encryption key. There are multiple ways of encoding your information while utilizing distributed storage. You can utilize client-side encryption, which encodes the information before it’s shipped off the cloud, or server-side encryption, which scrambles information after it has been transferred to the cloud. Whichever technique you pick, ensure you’re doing whatever it may take to guarantee your information is secure.</p><p><strong>2</strong>.<strong> Set Up a VPN to Access Cloud Storage</strong></p><p>A VPN (Virtual Confidential Organization) is a safe association between at least two gadgets that scrambles all information sent and received. This implies that any information you ship off the distributed storage supplier is encoded, making it a lot harder for programmers to catch and take your information. Using a VPN likewise safeguards against man-in-the-center assaults, which are the point at which an aggressor blocks correspondences between two gatherings to get sufficiently close to delicate data. By utilizing a VPN, you can guarantee that the main approved clients approach your distributed storage account.</p><p><strong>3. Choose a Reputable Provider</strong></p><p>At the point when you pick a distributed storage supplier, you’re entrusting them with your information. You need to ensure that they have the important safety efforts set up to safeguard your information from unapproved access and vindictive assaults. A trustworthy supplier will have serious areas of strength to have conventions, vigorous confirmation frameworks, and other security highlights intended to guard your information.</p><p><strong>4. Monitor for Unauthorized Access Attempts</strong></p><p>Unapproved access endeavors can be an indication of malignant action, for example, an aggressor attempting to get to your distributed storage account. By checking unapproved access endeavors, you can recognize and answer any dubious action quickly. To screen unapproved access endeavors, use devices like CloudTrail or AWS Config to follow client exercises in your cloud climate. You ought to likewise set up cautions, so you are advised when there is dubious action recognized. Moreover, make a point to routinely survey the logs from these devices to guarantee that nobody has acquired unapproved admittance to your distributed storage account.</p><p><strong>5. Conduct Regular Backups</strong></p><p>Backups are fundamental for recuperating information in case of a fiasco, for example, a digital assault or framework disappointment. By consistently backing up your distributed storage, you can guarantee that your significant records as a whole and reports stay safe and secure.It’s likewise critical to store reinforcements offsite, so they’re not powerless against similar dangers as your essential distributed storage. Along these lines, assuming something happens to your essential stockpiling, you’ll in any case approach your supported data. Finally, try to test your reinforcements occasionally to guarantee they’re working appropriately. Like that, you will not be surprised when you really want them most advantages of Cloud Storage</p><h3>· The advantages of Cloud Storage include:</h3><p>o <strong>File Accessibility </strong>— The files can be accessed at any time from any place so long as you have Internet access.</p><p>o <strong>Offsite Backup </strong>— Cloud Storage provides organizations with offsite (remote) backups of data which in turn reduces costs.</p><p>o <strong>Effective Use of Bandwidth </strong>— Cloud storage uses the bandwidth effectively i.e. instead of sending files to recipients, a web link can be sent through email.</p><p>o <strong>Security of Data </strong>— Helps in protecting the data against ransomware or malware as it is secured and needs proper authentication to access the stored data.</p><h3>· Disadvantages of Cloud Storage:</h3><p>o <strong>Dependency on Internet Speed </strong>— If the Internet connection is slow or unstable, we might have problems accessing or sharing the files.</p><p>o <strong>Dependency on a Third Party </strong>— A third-party service provider (company) is responsible for the data stored and hence it becomes an important prerequisite in selecting a vendor and examining the security standards prior to investing.</p><p>o <strong>High Cost for Huge Data </strong>— Organizations that require a large amount of storage may also find costs increase significantly even after the first few gigabytes of data are stored.</p><p>o <strong>No/ Minimal Control over Data Storage Framework </strong>— Since the cloud storage framework is entirely managed and monitored by the service provider, the customer has minimal control over it.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Ftenor.com%2Fembed%2F17106507&amp;display_name=Tenor&amp;url=https%3A%2F%2Ftenor.com%2Fview%2Fyour-happy-workplace-wendy-conrad-thank-you-thanks-thanks-so-much-gif-17106507&amp;image=https%3A%2F%2Fmedia.tenor.com%2FtYa_OUugm18AAAAC%2Fyour-happy-workplace-wendy-conrad.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=tenor" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/d066b6c70be2ad983ed0fc63b6b8042f/href">https://medium.com/media/d066b6c70be2ad983ed0fc63b6b8042f/href</a></iframe><p>❤ ❤ Thanks for reading this post❤❤</p><p>If you enjoyed this post, share it with your friends. Do you want to share more information about the topic discussed above or do you find anything incorrect? Let us know in the comments. Thank you!</p><p>Clap 👏 If this article helps you.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=441078dd948c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Types Of Automata And It’s Application]]></title>
            <link>https://shweta-lokhande19.medium.com/types-of-automata-and-application-6669cf4ed9a8?source=rss-2adde524dae2------2</link>
            <guid isPermaLink="false">https://medium.com/p/6669cf4ed9a8</guid>
            <dc:creator><![CDATA[Shweta Lokhande]]></dc:creator>
            <pubDate>Sat, 11 Jun 2022 16:31:00 GMT</pubDate>
            <atom:updated>2022-06-27T10:49:23.201Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*ETfX_3zNoS3jzk5XVfy1Yw.jpeg" /><figcaption>Image by Pinterest</figcaption></figure><p>Automata theory is the basis for the theory of <strong>formal languages</strong>. It is the study of abstract machines and the computation problems that can be solved using these machines. The abstract machine is called the automata.The main motivation behind developing the automata theory was to develop methods to describe and analyse the dynamic behaviour of discrete systems. A Proper treatment of formal language theory begins with some basic definitions:</p><ul><li>A symbol is simply a character, an abstraction that is meaningless by itself.</li><li>An alphabet is a finite set of symbols.</li><li>A word is a finite string of symbols from a given alphabet.</li><li>Finally, a language is a set of words formed from a given alphabet</li></ul><blockquote><em>Types of Automata and its applications</em></blockquote><h4>Finite Automata</h4><p>Finite automata are use to recognize patterns.An automaton with a finite number of states is called a Finite automaton. It takes the string of symbol as input and changes its state accordingly. When the desiring symbol is search, then the transition occurs. At the time of transition, the automata can either move to the next state or stay in the same state. Finite automata have two states, Accept state or Reject state. When the input string is processing successfully, and the automata reached its final state, then it will accept.</p><h3>Finite Automata Model:</h3><p>A finite automaton is a collection and machine of 5-tuple (Q, ∑, δ, q0, F), where:</p><ol><li>Q: finite set of states</li><li>∑: finite set of the input symbol</li><li>q0: initial state</li><li>F: <strong>final</strong> state</li><li>δ: Transition function</li></ol><blockquote><em>Note: </em><strong><em>Input tape</em></strong><em> is a linear tape having some number of cells. Each input symbol is place in each cell.</em></blockquote><p><strong>Finite control:</strong> The finite control decides the next state on receiving particular input from input tape. The tape reader reads the cells one to one from left to right, and at a time only one input symbol is read.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/442/0*vsDyK8L1yjgz0RFl.png" /></figure><h3>Types of Automata:</h3><p>There are two types of finite automata:</p><ol><li>DFA(deterministic)</li><li>NFA(non-deterministic)</li></ol><p><strong>1.DFA</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/344/1*hNe2wGpUacsKx5yXwYiueA.png" /><figcaption>Image by Gate Vidyalaya</figcaption></figure><p>DFA refers to deterministic finite automata. Deterministic refers to the uniqueness of the computation. In the DFA, the machine goes to one state only for a particular input character. DFA does not accept the null move.</p><p><strong>2. NFA</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/411/0*WwRQGTqJ5CMDnc6g.png" /><figcaption>Image by Gate Vidyalaya</figcaption></figure><p>NFA stands for non-deterministic automata. It is used to transmit any number of states for a particular input. It can accept the null move.</p><blockquote><strong><em>Some important points about DFA and NFA:</em></strong></blockquote><blockquote><em>* Every DFA is NFA, but NFA is not DFA.<br>* There can be multiple final states in both NFA and DFA.<br>* DFA is used in Lexical Analysis in Compiler.<br>* NFA is more of a theoretical concept.</em></blockquote><h3>Applications of Finite Automata (FA):</h3><ul><li>Software for designing and checking the behavior of digital circuits</li><li>It is highly useful to design Lexical Analyzers</li><li>This automata is highly useful to design spell checkers.</li><li>For this automata is useful to design sequential circuit design (Transducer).</li><li>Another application of finite automata is programming simple agents to retort to inputs and produce actions in how. you’ll be able to write a full program, but a DFA is commonly enough to try to to the duty. DFAs are easier to reason about and easier to implement.</li></ul><h3>Cellular Automata</h3><p>Cellular automata is a deterministic rewriting dynamic systems that evolves in discrete time and discrete space, the latter usually a grid. It consists of a grid of cells that are locally but synchronously updated across the grid according to a global time scale and a global recursive rule governing the evolution of the state of each cell as a function of the state of neighboring cells.</p><p>While the model of cellular automata is of the same computational power than other Turing universal models and, therefore, fundamentally equivalent as they can emulate each other.</p><p>Typically, a CA neighborhood is defined as an automaton and its immediate neighbors. The two most common neighborhood templates used for a two-dimensional lattice are:</p><p><strong>Figure:</strong> Two most common 2-D CA neighborhood templates.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/410/0*rnCKNCjeq0wr0gqp.png" /></figure><p>Since the automata are using state configurations of a given template as their input source, the set of all possible configurations for a given template is isomorphic to the set of input symbols that the automata need recognize.</p><p>To simplify construction of CA systems, the following conventions are universally employed:</p><ol><li>All FA are defined to use the same set of state symbols</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/14/0*ISYPe76D1Zd3pzOW.png" /></figure><p>2. All FA use the same neighborhood template</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/16/0*CyKRm9-IASeoqHC4.png" /></figure><p>3. As a consequence of 1 and 2, all FA will be recognizing the exact same set of state configurations. Thus, it its natural to define all automata to use the same input symbol alphabet</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/14/0*79z-KBklwlWmeZhB.png" /></figure><h3>Computation in CA</h3><p>The Game of Life is a concrete example that CA can support universal computation. However, that CA can be functionally universal has been known since its invention by Ulam and von Neumann in the 1940s. In his existence proof of such self-reproducing machines, von Neumann demonstrated the existence of a universal computer using a two-dimensional, 29-state cellular automaton with the 5-neighborhood template. From this proof stemmed subsequent proofs of automata with much fewer states supporting universal computation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/287/0*sy5bku84AFTzxl8p.gif" /><figcaption>Gif by Wolfram Mathworld</figcaption></figure><h3>Applications of Cellular Automata (CA)</h3><p>Let us just list some examples of physical phenomena and CA that exhibit similar behavior:</p><ul><li>Patterns on sea shells <em>Cymbiola innexa</em> are similar to patterns generated by rule 30 1D CA</li><li>Growth of crystals especially patterns in snowflakes can be modeled by simple 2D CA</li><li>Excitable media in biology (predator-prey dynamics) and chemistry (Belousov-Zhabotinsky reaction) produce spiral patterns that can be seen in Greenberg-Hastings Models</li><li>Self-replication is seen in the <em>Langton loop</em> (which is a small component of a simplified version of the original von Neumann self-replicating machine)</li><li>Evolution (self-replication + mutation + selection) can be seen on the Evoloop model, a modified Langton loop</li><li>Fractal growth of biological organisms</li><li>Models of <em>universal computation</em> include rule 110 and the Game of Life</li><li>The <em>Game of Life</em> exhibits interesting patterns that can’t really be seen in the real world but they excite our imagination about what CA are capable of</li></ul><h3>Pushdown Automata</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/562/0*BbcKq09s3t5N_eyB.gif" /><figcaption>Gif by Dev Community</figcaption></figure><p>The formal notation for a pushdown automata (PDA) involves seven tuples. We write the specification of a PDA ‘M’ as follows;</p><p><strong>M = (Q, ∑, Γ, δ, q0 , z0, F)</strong></p><p>These tuples have the following meaning;</p><ol><li><strong>` Q`:</strong> A finite set of states, like the states of a finite automation.</li><li><strong>`∑`:</strong> A finite set of input alphabet/ symbols, also analogous to the corresponding component of a finite automaton.</li><li><strong>`Γ`:</strong> A finite stack alphabet. This tuple, which has no finite-automaton analog, it the set of symbols that we are allowed to push onto the stack.</li><li><strong>`δ`:</strong> The transaction function. As for a finite automation, δ governs the behavior of the automaton. Formally, δ takes as argument a triple δ(q, a, X), where;</li><li>q is a state in Q.</li><li>a is either an input symbol in ∑ or a = ε, the empty string, which is assumed not to be an input symbol.</li><li>X is a stack symbol, that is a member of Γ.</li></ol><p>Basically the complete transaction function of pushdown automata is as;</p><pre><strong>δ: (Q x (Σ ∪{ε}) x X) → (p, γ)</strong></pre><p>Here the output of δ is a finite set of pair (p, γ), where p is the new state, and γ is the string of stack symbols that replaces X at the top of the stack. For instance, if γ = ε, then the stack is popped, if γ = X, then the stack is unchanged, and if γ = YZ, then X is replaced by Z and Y is pushed onto the stack.</p><ol><li><strong>q0:</strong> The initial state. The PDA is in this state before making any transitions.</li><li><strong>z0:</strong> The stack start symbol. Initially, the PDA’s stack consists of one instance of this symbol, and nothing else.</li><li><strong>F:</strong> The set of final states or accepting states.</li></ol><p>Pushdown Automata has a Stack mechanism to accept languages which aren’t possible in a Finite Automata. The problem comes when before a Push operation we need to check for Overflow Condition, or before a Pop Operation we check for the Underflow Condition.</p><p>We solve this problem by assuming that the Stack is infinite, while the empty condition is overcome by pre introducing an element Z0 into the stack before working on the string.</p><h3>Applications of Pushdown Automata</h3><ul><li>Whenever your smartphone calculator calculates an arithmetic expression, it uses an implementation of the push down automata to evaluate it. It verifies that the parentheses are balanced. In the absence of parentheses, it makes sure that the multiplication operator has more precedence than the addition or subtraction operator. All of it can be summarized in three lines of grammar:</li></ul><pre>E→E+T|E−T|TE→E+T|E−T|TT→T∗F|T/F|FT→T∗F|T/F|FF→x|y|(E)|−F</pre><ul><li>Online Transaction Processing system</li></ul><p>In this work an attempt is made to model the online transaction processing system of a banking organization with timed automata. In Figure the organization of the bank is depicted. It consists of multiple branches with multiple tellers at each branch.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/927/0*qiXFUVQf1q4_AyqJ.png" /></figure><ul><li><strong>Tower Of Hanoi (Recursive Solution)</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*s4JdrKtUThtpeIAcBEmvZw.gif" /><figcaption>Image by Viblo</figcaption></figure><h3>Linear Bound Automata</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*5t89fzb2zrdTT2cn.jpg" /><figcaption>Image by Youth4work</figcaption></figure><p>A Turing machine that uses only the tape space occupied by the input is called a linear-bounded automaton (LBA).An LBA differs from a Turing machine in that while the tape is initially considered to have unbounded length, only a finite contiguous portion of the tape, whose length is a linear function of the length of the initial input, can be accessed by the read/write head; hence the name linear bounded automaton.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/495/0*loWMw7LLpsFOao6U.png" /></figure><p>Linear bounded automata is a non-deterministic Turing machine</p><pre><strong>M = (Q , T , E , q0 , ML , MR , S , F), </strong></pre><pre>where,  <br><strong>Q</strong> -&gt; A finite set of transition states<br><strong>T </strong>-&gt; Tape alphabet<br><strong>E </strong>-&gt; Input alphabet<br><strong>q0</strong> -&gt; Initial state<br><strong>ML</strong> -&gt; Left bound of tape<br><strong>MR</strong> -&gt; Right bound of tape<br><strong>S</strong> -&gt; Transition Function<br><strong>F</strong> -&gt; A finite set of final states</pre><ul><li>There are two special tape symbols (the left end marker and right end marker).</li><li>The TM begins in the configuration (s, , 0).</li><li>The TM cannot replace with anything else, nor move the tape head left of .</li></ul><p>An equivalent definition of an Linear Bound Automata(LBA) is that it uses only k times the amount of space occupied by the input string, where k is a constant fixed for the particular machine. Possible to simulate k tape cells with a single tape cell, by increasing the size of the tape alphabet.</p><p>Examples: {a^n | n is a perfect square }</p><p>Used as a model for actual computers rather than models for the computational process.</p><h3>Applications of Linear Bound Automata</h3><ul><li>Genetic Programming</li><li>For constructing syntactic parse trees for semantic analysis of the compiler</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/527/0*Fo5hctV4l--vF9lk.png" /></figure><h3>Turing Machine</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/648/1*DT8w7wR5i4xuEPCdQM7JQw.gif" /><figcaption>Image by Futurelearn</figcaption></figure><p><strong>Turing machine </strong>is a theoretical device that manipulates symbols on a strip of tape according to a table of rules. Despite its simplicity, a Turing machine can be adapted to simulate the logic of any computer algorithm, and is particularly useful in explaining the functions of a CPU inside a computer. It consists of an infinitely long tape, which has been divided up into cells. Each cell can contain either a 1, a 0, or an empty space. Above one cell of the tape is a <strong>head</strong>, which can either move left or right, and can read the symbols written in the cells. The head is also capable of erasing symbols and writing new symbols into the cells.</p><p>The Turing machine is not intended as a practical computing technology, but rather as a thought experiment representing a computing machine. Turing machines help computer scientists understand the limits of mechanical computation.</p><p>A Turing Machine can be formally described as :</p><pre><strong>7-tuple</strong> (Q, X, ∑, δ, q0, B, F) where −<br>* Q is a finite set of states<br>* X is the tape alphabet<br>* ∑ is the input alphabet<br>* δ is a transition function; δ : Q × X → Q × X × {Left_shift, Right_shift}.<br>* q0 is the initial state<br>* B is the blank symbol<br>* F is the set of final states</pre><h3>Time and Space Complexity of a Turing Machine</h3><p>For a Turing machine, the time complexity refers to the measure of the number of times the tape moves when the machine is initialized for some input symbols and the space complexity is the number of cells of the tape written.</p><p>Time complexity all reasonable functions −</p><p><strong>T(n) = O(n log n)</strong></p><p>TM’s space complexity −</p><p><strong>S(n) = O(n)</strong></p><blockquote><strong><em>Note:</em></strong></blockquote><blockquote><em>* In non-deterministic Turing machine, there can be more than one possible move for a given state and tape symbol, but non-deterministic TM does not add any power.</em></blockquote><blockquote><em>* Every non-deterministic TM can be converted into deterministic TM.</em></blockquote><blockquote><em>* In multi-tape Turing machine, there can be more than one tape and corresponding head pointers, but it does not add any power to Turing machine.</em></blockquote><blockquote><em>* Every multi-tape TM can be converted into single tape TM.</em></blockquote><h3>Applications of Turing Machine</h3><ul><li>Read/Write Head</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1003/0*4WFGA0nVvkIC7wQk.png" /><figcaption>Image by GeeksforGeeks</figcaption></figure><ul><li>Building Chemical Computers using Turing Machine</li><li>Turing Test in Artificial Intelligence</li><li>Turing Machine Counting</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/0*i2pbp6UxmdQNWI9_.gif" /></figure><p>❤ ❤ Thanks for reading this post❤❤</p><p>If you enjoyed this post, share it with your friends. Do you want to share more information about the topic discussed above or you find anything incorrect? Let us know in the comments. Thank you!</p><p>Clap 👏 If this article helps you.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6669cf4ed9a8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Java Identifiers, Reserved Keywords And Control Statements]]></title>
            <link>https://shweta-lokhande19.medium.com/java-identifiers-reserved-keywords-and-control-statements-e87e1f6f5b26?source=rss-2adde524dae2------2</link>
            <guid isPermaLink="false">https://medium.com/p/e87e1f6f5b26</guid>
            <dc:creator><![CDATA[Shweta Lokhande]]></dc:creator>
            <pubDate>Mon, 31 May 2021 13:22:40 GMT</pubDate>
            <atom:updated>2021-06-08T15:37:43.488Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hf0gMfYdm9Y6PgQE-tBYCg.jpeg" /></figure><p>Identifiers in<em> </em>Java are one of the basic fundamentals of Java that is mandatory for any Java learner. Without learning the identifiers, its rules and naming convention, you can’t efficiently program in Java. The naming conventions are optional, but you should follow them as a rule so that it increases the readability of the code.</p><p>In simple it is a variable name in java. Let’s say you allocated a memory for an integer i.e. int a; so now how you will identify the memory that you have allocated, by using the identifier name i.e. a. If there were no identifiers in programming then you have to write address of the memory that you have allocated. So they just made it simple to keep allocated memory in track in simple human language. Keywords also are known <em>as reserved words</em> are the pre-defined identifiers reserved by Java for a specific purpose that inform the compiler about what the program should do. A Keyword is that which have a special meaning those already explained to the java language like int, float, class, public, etc. these are the reserved keywords. These special words cannot be used as class names, variables, or method names, because they have special meaning within the language. Control Statements in Java is one of the fundamentals required for Java Programming. It allows the smooth flow of a program.</p><h3>And of course there are some rules to define an identifier in java so let’s see</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2Fj6SOLjGu7VQJD8t8rO%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2Fj6SOLjGu7VQJD8t8rO%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2Fj6SOLjGu7VQJD8t8rO%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="244" frameborder="0" scrolling="no"><a href="https://medium.com/media/387e8ae2bffe146c9c02106428e32c14/href">https://medium.com/media/387e8ae2bffe146c9c02106428e32c14/href</a></iframe><p>1. Identifier must not start with any numeric or it is always recommendable to starts some of the identifiers with small case.</p><p>2. It must not contain any special symbol other than (_ or $).</p><p>3. Identifier must not contain any blank space in between.</p><p>4. Identifiers may contain numeric but it should not be in starting.</p><p>5. Identifiers in Java are case-sensitive means oop and OOP are two different identifiers.</p><p>6. Keywords cannot be used as an identifiers. For example “int while = 156;” is an invalid statement as while is a reserved word.</p><h3>Valid and Invalid Identifiers</h3><h4>Valid Identifiers</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n8AqZIDqZwR5L_ACZHCxVQ.png" /><figcaption><strong>Fig.1.Valid Identifiers</strong></figcaption></figure><p>Invalid Identifiers</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uqP8p9u1SS4uFnMPBJLPhg.png" /><figcaption><strong>Fig.2.Invalid Identifiers</strong></figcaption></figure><h3>Reserved Keywords</h3><p>Keywords are predefined words by Java it conveys special meaning to the Java compiler. It cannot be used as a variable or object, class name or methods name. Reserved words which are having predefined meaning in Java. All the keywords are defined in lower case and the meaning of these keywords can’t be modified.Let us start our discussion with what is keywords in Java and then we will discuss some main keywords in Java that we frequently use in our Java programs. In Java there are 51 keywords, but 2 of them are not used which are-goto and const. Only 49 keywords are used in Java. All of them have different purposes and meanings.</p><h4>Below is the Java Keyword List:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qiaJvIuhHZCddi04sf_9ug.png" /><figcaption>fig.3.Java Keywords</figcaption></figure><p>Just see in a brief to get</p><p><strong>1</strong> — Datatypes/return types :-</p><p><em>byte,short,int,long,float,double,char,Boolean,void</em></p><p><strong>2</strong> — Access modifiers/security Related :-</p><p><em>private,public,protected,static,final,abstract,native,voatie,transient,synchronized,strictfp</em></p><p><strong>3</strong> — Flow controlling Related keywords :-</p><p><em>If,else,for,while,do,case,default,break,return,continue,switch,assert</em></p><p><strong>4</strong> — Class Related keywords :-</p><p><em>Class,extends,import,implements,interface,package,enum</em></p><p><strong>5</strong> — Object Related keywords :-</p><p><em>this,super,new,instanceof</em></p><p><strong>6</strong> — Exception handling related keywords :-</p><p><em>try,catch,throw,throws,finally</em></p><p>Reserved words is also predefined word but it does not have any valid functionality and its functionality is not register with jvm.</p><p><strong>Ex</strong>. :- const,goto (used in C++)but not used in java.</p><p>In java instead of “const” word we can use final keyword.</p><p>In java instead of “goto” word we can use break,continue,return keyword.</p><h3>Control Statements</h3><p>Control flow statements alter the flow of execution and provide better control to the programmer on the flow execution. Whenever we need to execute a set of statements based on some condition then we need to use control statements. Control statement executes the set of statements based on the condition is true or false. If condition is <strong><em>true </em></strong>then Control flow statement executes the set of instruction inside it otherwise if the condition is <strong><em>false </em></strong>then Control goes to the next Control flow or next defined statements. If a program has no control statements, the JVM executes it, statement by statement, in sequential order.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bJGqoLq5loZfxIuESsh-kA.png" /><figcaption>fig.4.Control Statements</figcaption></figure><h4>In java control statements are categorized into 3 groups:</h4><p><strong>1.</strong> Selection or Decision Making Statements:</p><p>Allow the program to choose different parts of the execution based on the outcome of an expression.</p><p><strong>2.</strong> Iteration Statements:</p><p>It enables program execution to repeat one or more statements.</p><p><strong>3.</strong> Jump Statements:</p><p>It enables your program to execute in a non-linear fashion</p><h4>Let’s see one bye one in detail</h4><h4><em>Selection or Decision Making Statements:</em></h4><h4>1. if statements:</h4><p>The Statements only gets executed when the Condition given inside the If Statement is True otherwise the program simply skip the statements inside the If Statements and execute the next given command. The syntax and execution flow of if statement is as follows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/519/1*vWDAagHwK8dAQQFJhhTP2Q.png" /><figcaption>fig.5.if statements</figcaption></figure><h4>2. if-Else Statements:</h4><p>The if-else statement checks the given condition then decides which block of statements to be executed based on the condition result. If the condition is True, then the true block of statements is executed and if it is False, then the false block of statements is executed. The syntax and execution flow of if-else statement is as follows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/441/1*vRPyLHifFhfrvZodfcRKng.png" /><figcaption>fig.6.if-Else statements</figcaption></figure><h4>3.switch statements:</h4><p>Using the switch statement, one can select only one option from more number of options very easily. In the switch statement, we provide a value that is to be compared with a value associated with each option. Whenever the given value matches the value associated with an option, the execution starts from that option. In the switch statement, every option is defined as a <strong>case</strong>.</p><p>The switch statement has the following syntax and execution flow diagram.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/598/1*rZM-PdEaZZizlY5ZgzpEjA.png" /><figcaption>fig.7.switch statements</figcaption></figure><h4>Iteration Statements:</h4><ol><li>while statements:</li></ol><p>The while statement is used to execute a single statement or block of statements repeatedly as long as the given condition is TRUE.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/473/1*J2xx38xCqwhgg1eNlEPrzA.png" /><figcaption>fig.8.while Statements</figcaption></figure><p>2. do-while statements</p><p>The do-while statement is used to execute a single statement or block of statements repeatedly as long as given the condition is TRUE. The do-while statement has the following syntax.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/465/1*f02ULn49bLaPIA_Abi6EGw.png" /><figcaption>fig.9.do-while statement</figcaption></figure><p>3.For Statements</p><p>The for statement is used to execute a single statement or a block of statements repeatedly as long as the given condition is TRUE. The for statement has the following syntax and execution flow diagram.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/471/1*tU9NTuIAx2UZ9OdYNkW23w.png" /><figcaption>fig.10.for statement</figcaption></figure><h4>Jump Statements</h4><p>1.break statement</p><p>The break statement in java is used to terminate a switch or looping statement. That means the break statement is used to come out of a switch statement and a looping statement like while, do-while, for, and for-each.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/412/1*uj-qfGoQArZO_E7IqU4PJg.png" /><figcaption>fig.11.jump statement</figcaption></figure><p>2.continue statement</p><p>The continue statement is used to move the execution control to the beginning of the looping statement. When the continue statement is encountered in a looping statement, the execution control skips the rest of the statements in the looping block and directly jumps to the beginning of the loop. The continue statement can be used with looping statements like while, do-while, for</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/413/1*HnoMUWge2Ja2J19_htjK8A.png" /><figcaption>fig.12.continue statement</figcaption></figure><h3>conclusion:</h3><p>In this article, we learnt about identifiers which are a core concept in Java. We learnt about them, what are the different rules to name them and much more. Then we have discussed various keywords used in Java. Java supports a total of 51 keywords out of which 49 keywords are currently used and 2 are not currently used. After that we have discussed about the control statements and their types and how they are used to control the flow of execution in your code. It must be used efficiently to make the program effective and user-friendly.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Ftenor.com%2Fembed%2F17106507&amp;display_name=Tenor&amp;url=https%3A%2F%2Ftenor.com%2Fview%2Fyour-happy-workplace-wendy-conrad-thank-you-thanks-thanks-so-much-gif-17106507&amp;image=https%3A%2F%2Fmedia.tenor.com%2FtYa_OUugm18AAAAC%2Fyour-happy-workplace-wendy-conrad.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=tenor" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/d066b6c70be2ad983ed0fc63b6b8042f/href">https://medium.com/media/d066b6c70be2ad983ed0fc63b6b8042f/href</a></iframe><p>❤ ❤ Thanks for reading this post❤❤</p><p>If you enjoyed this post, share it with your friends. Do you want to share more information about the topic discussed above or you find anything incorrect? Let us know in the comments. Thank you!</p><p>Clap 👏 If this article helps you.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e87e1f6f5b26" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>