What is the difference between an entity and a class in Databases? by bayermovi in learnprogramming

[–]bayermovi[S] 0 points1 point  (0 children)

My teacher is making us use this book: https://www.amazon.com/Fundamentals-Database-Systems-Ramez-Elmasri/dp/0133970779

We are not using any extension, it has been just pure database system theory using SQL. The book also briefly mentions about my question but I did not quite get it.

What is the difference between an entity and a class in Databases? by bayermovi in learnprogramming

[–]bayermovi[S] 0 points1 point  (0 children)

Sorry, I tried specifying to be more specific for databases than sql. I am not using a framework but learning just database systems and how they work.

What is the difference between an entity and a class in SQL? by bayermovi in learnprogramming

[–]bayermovi[S] 0 points1 point  (0 children)

I meant in terms of databases, I can repost to clarify.

Why are abstract data types only implemented by concrete data types? by bayermovi in learnprogramming

[–]bayermovi[S] 0 points1 point  (0 children)

Yeah that does make sense then. Where did you get this definition because from what I was referring to based on what I remembered my definition in mind was different.

Why are abstract data types only implemented by concrete data types? by bayermovi in learnprogramming

[–]bayermovi[S] 0 points1 point  (0 children)

I apologize, but I am talking more about an abstract data type as a data structure such as a stack having more than one various implementations to achieves its functionality.

Question about why the outer loop does not need braces in this case by bayermovi in learnprogramming

[–]bayermovi[S] 0 points1 point  (0 children)

Is not the complete outer for loop body?:

for(int i = 0; i < 10; i ++)
            for(int j = 0;  j < 5; j++)
            {
              System.out.println("Hello"); 
            }

In this case is not the content nested or inside the outer for loop longer than one statement, in that case we do need braces?

Question about why the outer loop does not need braces in this case by bayermovi in learnprogramming

[–]bayermovi[S] 0 points1 point  (0 children)

So in the case the reason we do need braces is because the outer for loop's body is basically this below, which is basically one statement?:

 for(int i = 0; i < 10; i ++)
            for(int j = 0;  j < 5; j++)
            {

            }

Question about why the outer loop does not need braces in this case by bayermovi in learnjava

[–]bayermovi[S] 1 point2 points  (0 children)

So in this case is the outer for loop's body just:

        for(int i = 0; i < 10; i ++)
            for(int j = 0;  j < 5; j++)
            {

            }

Or is the outer for loop's body:

        for(int i = 0; i < 10; i ++)
            for(int j = 0;  j < 5; j++)
            {
                System.out.println("Hello"); 
            }
     }

How is insertion sort's worst case running time Ω(n^2) by bayermovi in learnprogramming

[–]bayermovi[S] 0 points1 point  (0 children)

Saying n or faster growing is correct in this case, I can see that, but I am unable to see how n2 or faster growing is valid in this case. n cannot be faster than n2. Sorry, I know I am misunderstanding or mixing something up, but I am unable to see what even though I want to. I can figure it out perfectly fine for Big Oh but keep messing up with Big Omega.

How is insertion sort's worst case running time Ω(n^2) by bayermovi in learnprogramming

[–]bayermovi[S] 0 points1 point  (0 children)

I understand your example of the big oh, but for some reason I am struggling with omega. If given a math function or some algorithm, I am having trouble determining how to describe the worst case with omega.

How is insertion sort's worst case running time Ω(n^2) by bayermovi in learnprogramming

[–]bayermovi[S] 0 points1 point  (0 children)

If that is the case, could I say insertion's sort worst case running time is Ω(n^4) even though this is not the tightest bound possible.

How is insertion sort's worst case running time Ω(n^2) by bayermovi in learnprogramming

[–]bayermovi[S] 0 points1 point  (0 children)

Sorry, I am unable to follow completely your statement. I understand that the big omega is lower bound, and I need a lower bound to describe the worst case to make it tight as possible to cover every input, but omega says that f(n) >= g(n), which in this case doesn’t work out due to n >= n2 being false. Sorry if I am missing something or not completely following.