Sal3h.Sa3d's blog

By Sal3h.Sa3d, history, 7 days ago, In English

What does Judgement Failed mean?

I got it now in div 2 problem A

Full text and comments »

  • Vote: I like it
  • +1
  • Vote: I do not like it

By Sal3h.Sa3d, history, 6 months ago, In English

To solve this problem, we can apply a simple algorithmic approach. First, we calculate the sum of all the initial prices and divide it by the total number of products to find the average price. Then, we add the tolerance range ±k to the average price to obtain the minimum and maximum possible prices

Algorithm Explanation:

  1. Read the number of products n and the tolerance range k.
  2. Read the prices of the n products and calculate their sum.
  3. Calculate the average price by dividing the sum by n.
  4. Calculate the minimum possible price by subtracting k from the average price.
  5. Calculate the maximum possible price by adding k to the average price
Solution

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it

By Sal3h.Sa3d, history, 6 months ago, In English

For an algorithm the most important is efficiency. There are two kinds: 1. Time efficiency, indicating how fast the algorithm runs, and 2. Space efficiency, indicating how much extra memory it uses. The efficiency of an algorithm is determined by measuring both time efficiency and space efficiency. So, factors to analyze an algorithm are: ➢ Time efficiency of an algorithm. ➢ Space efficiency of an algorithm. ➢ Simplicity of an algorithm. ➢ Generality of an algorithm.

Full text and comments »

  • Vote: I like it
  • -34
  • Vote: I do not like it

By Sal3h.Sa3d, history, 9 months ago, In English

 Problem solving is the act of defining a problem; determining the cause of the problem; identifying, prioritizing, and selecting alternatives for a solution; and implementing a solution.

Full text and comments »

  • Vote: I like it
  • +5
  • Vote: I do not like it

By Sal3h.Sa3d, history, 14 months ago, In English

The Algorithm or Algorithms was named after Muhammad bin Musa Al-Khwarizmi, the Arab mathematician, and what is meant by algorithms in the field of programming are the steps that we use to solve the problems that we meet. And that's it And of course, there is a basis in his book, the algorithm, not anything, and that's it, I can say about it algorithm 1- Simplicity: This is an important thing in writing any algorithm so that I, as a programmer, can turn it into code that I really use. The simpler the steps you use, the easier it is for you to use them later

2 General: And here what is meant by it is that when I create an algorithm, I do it in a way that I can use it on a large scale. I mean, for example, I can’t say 1 + 2 = 3. This is an algorithm because it has a limited scale, which is only these two numbers. But it is possible that x + y = z is an algorithm. So I can use any number and it will do exactly the same job 3- Efficiency: And here we will need to understand the concept of efficiency in programming, and this is in order to be able to measure the efficiency of any algorithm, and the main factor here is the time.

So, do we understand from this statement that there are really existing algorithms that I can use? Oh, of course, there are very many, but we will take simple examples from them, so that it does not prolong you more than that

1- Sort Algorithms or ranking algorithms The arrangement algorithm is one of the most studied and researched algorithms in the field of computer science in general. Its aim is to arrange a large number of elements in a specific order, so that it will be easier for me after that to connect it. Of course, you can write it in any programming language that you use. The most important thing is to understand its principle and one of the most important algorithms. arrangement Merge Sort Quick Sort Heap sort Bubble Sort 2- The Search Algorithms or search algorithms And this is used to search for a specific element in a place, whether it is databases or array objects, for example, and one of the most famous examples of it is binary search or binary search, and this depends on dividing the elements in half each time until we reach the element to look for it Of course, there are many examples of algorithms, but we will suffice with these for now SALAH

Full text and comments »

  • Vote: I like it
  • -12
  • Vote: I do not like it

By Sal3h.Sa3d, history, 14 months ago, In English

Whenever I need anything in the world and feel that it is difficult or helpless, I think of how many million people other than me have achieved it; I move and say to my mind, what is the problem, that those who have achieved more than just a million and one! So I work and force myself to reach. #### salah

Full text and comments »

  • Vote: I like it
  • -18
  • Vote: I do not like it

By Sal3h.Sa3d, history, 17 months ago, In English

Night, worries and problems belong to you alone! What does it mean, my good sir! It means the problems of your life, your work, and everything that concerns you, are exactly the same for millions of others. What differentiates one from the other is that each person tries to solve his problems according to his level of awareness and management of matters. One solves problems intelligently and with less losses. And someone solves his problems the hard way, but he reaches in the end. And someone makes impulsive decisions and creates bigger problems and spirals that don't end. Roots of the problem Roots of the problem. etc. The steps to solve any problem in the world begin with realization, then analysis, then developing solutions that suit the situation Each stage is based on the one before it, so if you do well, you will do well for the one that follows it Perception comes with teaching, teaching, patience and calmness And those who are distinguished by these qualities are the smartest in solving problems

salah

Full text and comments »

  • Vote: I like it
  • -17
  • Vote: I do not like it

By Sal3h.Sa3d, history, 17 months ago, In English

Definition

The term problem solving has a slightly different meaning depending on the discipline. For instance, it is a mental process in psychology and a computerized process in computer science. There are two different types of problems: ill-defined and well-defined; different approaches are used for each. Well-defined problems have specific end goals and clearly expected solutions, while ill-defined problems do not. Well-defined problems allow for more initial planning than ill-defined problems.[2] Solving problems sometimes involves dealing with pragmatics, the way that context contributes to meaning, and semantics, the interpretation of the problem. The ability to understand what the end goal of the problem is, and what rules could be applied represents the key to solving the problem. Sometimes the problem requires abstract thinking or coming up with a creative solution.

Eng salah.

Full text and comments »

  • Vote: I like it
  • -16
  • Vote: I do not like it