Skip to main content

Posts

Write an algorithm of Selection Sort Method?

  In selection sort, the smallest value among the unsorted elements of the array is selected in every pass and inserted to its appropriate position into the array. It is also the simplest algorithm. It is an in-place comparison sorting algorithm. In this algorithm, the array is divided into two parts, first is sorted part, and another one is the unsorted part. Initially, the sorted part of the array is empty, and unsorted part is the given array. Sorted part is placed at the left, while the unsorted part is placed at the right. In selection sort, the first smallest element is selected from the unsorted array and placed at the first position. After that second smallest element is selected and placed in the second position. The process continues until the array is entirely sorted. The average and worst-case complexity of selection sort is  O(n 2 ) , where  n  is the number of items. Due to this, it is not suitable for large data sets. source of article is :-  ...

Time between failures of wire-cut (in hours)

  Time between failures of wire-cut (in hours) 2 22 32 39 46 56 76 79 88 93 3 24 33 44 46 66 77 79 89 99 5 24 34 45 47 67 77 86 89 99 9 26 37 45 55 67 78 86 89 99 21 31 39 46 56 75 78 87 90 102 1. Calculate the mean, median, and mode of time between failures of wire-cuts . 2. The company would like to know by what time 10% (ten percentile or P10) and 90% (ninety percentile or P90) of the wire-cuts will fail. 3. Calculate the values of P25 and P75. ANS:- Mean :- The mean, often referred to as the average, is a statistical measure used to find the central or typical value of a set of numbers. To calculate the mean, you add up all the numbers in the set and then divide by the total number of values. The mean provides a single value that represents the “center” of the data set. Median:- The median is another measure of central tendency used in statistics. It is the middle value in a data set when the values are arranged in ascending or descending order. If there is an even number of va...

Unraveling the Evolution: An In-Depth Look into The History of Operating Systems

Unraveling the Evolution: An In-Depth Look into The History of Operating Systems   OS (Operation System) Introduction An operating system (OS) is an essential software that acts as an interface between users and computer hardware. It manages computer resources, supports the execution of applications, and ensures efficient utilization of the system. In this article, we will explore the fascinating history of operating systems, their current status, and delve into the most commonly used OS today. Origins and Evolution The Birth of Operating Systems In the early days of computing, there were no operating systems as we know them today. Computers were programmed directly in machine language, making the process highly cumbersome. The need for a more efficient way of interacting with computers gave birth to the concept of operating systems. Multics and the Rise of Timesharing Systems In the mid-1960s, MIT, Bell Labs, and General Electric embarked on the development of the Multics project....

What is PHP, and what is its primary use in web development?

  What is PHP, and what is its primary use in web development? PHP, which stands for "Hypertext Preprocessor," is a popular server-side scripting language used in web development. It was originally created by Rasmus Lerdorf in 1994 and has since evolved into a versatile and widely used tool for building dynamic websites and web applications. The primary use of PHP in web development is to handle server-side tasks, enabling web developers to create dynamic and interactive websites. Here are some key aspects of PHP's primary use in web development: Server-Side Scripting: PHP is primarily used on the server side, meaning it runs on the web server, not in the user's browser. When a user requests a web page, the PHP code on the server is executed, generating dynamic content and HTML that is then sent to the user's browser for display. Dynamic Web Pages: PHP allows developers to generate web pages with dynamic content. This means that web pages can display different i...

What does "oops" mean in programming?

"What does "oops" mean in programming? In programming, "oops" is not an acronym or technical term. Instead, it's often used informally as an exclamation to express that a mistake or error has been made. It's a playful or light-hearted way of acknowledging that something unintended or unexpected has occurred in your code. For example, if you discover a bug or realize that you've made a coding mistake, you might say "oops" to acknowledge the error before proceeding to correct it. It's a way programmers sometimes inject a bit of humor into the process of debugging and problem-solving. As the name suggests, Object-Oriented Programming or OOPs refers to languages that use objects in programming. Object-oriented programming aims to implement real-world entities like inheritance, hiding, polymorphism, etc in programming. The main aim of OOP is to bind together the data and the functions that operate o...

what is basic of c language ??

c language C is a general-purpose programming language that was developed in the 1970s. It has since become one of the most widely used programming languages due to its efficiency, portability, and flexibility. Here are some basic concepts of the C language: Syntax: C uses a simple and structured syntax. Each statement in C is terminated by a semicolon (;), and blocks of code are enclosed within curly braces ({ }). The main function serves as the entry point for the program. Variables and Data Types: In C, variables are used to store data. Before using a variable, you need to declare it, specifying its data type. Common data types in C include int (integer), float (floating-point number), char (character), double (double-precision floating-point number), and more. Operators: C provides various operators for performing arithmetic, assignment, comparison, logical, and bitwise operations. Examples of operators include + (addition), - (subtraction), * (multiplication), / (divisio...

what is COBOL programmers ??

The future of COBOL programmers is a topic that has generated considerable interest and debate in recent years. COBOL (Common Business-Oriented Language) is a programming language that has been around for several decades and is primarily used in business and financial applications. Many critical systems, such as those used by banks, insurance companies, and government agencies, were developed using COBOL. Here are a few points to consider regarding the future of COBOL programmers: Demand for COBOL skills: Despite its age, COBOL continues to power many important systems worldwide. These systems often require maintenance, updates, and occasional migration to newer technologies. As a result, there is still a demand for COBOL programmers who can work with these systems. Aging workforce: One significant challenge for the COBOL community is the aging workforce. Many experienced COBOL programmers are nearing retirement, which creates a skills gap. Organizations that rely on COBOL s...