TutorMe homepage
Subjects
PRICING
COURSES
SIGN IN
Start Free Trial
Priyanka A.
Tutor for 5 years
Tutor Satisfaction Guarantee
Python Programming
TutorMe
Question:

What are the major differences between a tuple and a list in python?

Priyanka A.
Answer:

A list is mutable i.e. it can be modified once created. Elements can be added or replaced in a list. But a tuple is immutable and it tends to remain the same once created. Hence elements cannot be added or replaced in a tuple. Because of the above reason processing of tuples is said to be faster than list processing.

Discrete Math
TutorMe
Question:

Why is Konigsberg Bridge problem not solvable?

Priyanka A.
Answer:

For crossing all the bridges at once without repetition the Konigsberg Bridge graph has to be either Eulerian or traversable. Now a graph is traversable if it is connected and has exactly two vertices of odd degree. A graph is eulerian if it is connected and all has all vertices of even degree. But, konigsberg Bridge graph has all vertices of odd degree. So, it is neither Eulerian nor traversable and hence the problem is not solvable.

C++ Programming
TutorMe
Question:

One of the advantages of merge sort over quick sort is that merge sort is stable while quick sort is an unstable sorting algorithm. Why is it necessary to have stable sorting algorithms?

Priyanka A.
Answer:

It is necessary to have stable sorting algorithms because when sorting is done based on one of the attributes of large databases, it remains sorted according to this particular attribute even if sorting is done again based on some other attribute. For example if the database of employees in some organisation is sorted according to their names. Now if stable sorting is done based on their salary, the entries still remain sorted according to names. This is not possible with unstable sorting algorithms and the relative order of entries is disturbed. So, having stable sorting algorithms is always an advantage.

Send a message explaining your
needs and Priyanka will reply soon.
Contact Priyanka
Ready now? Request a lesson.
Start Session
FAQs
What is a lesson?
A lesson is virtual lesson space on our platform where you and a tutor can communicate. You'll have the option to communicate using video/audio as well as text chat. You can also upload documents, edit papers in real time and use our cutting-edge virtual whiteboard.
How do I begin a lesson?
If the tutor is currently online, you can click the "Start Session" button above. If they are offline, you can always send them a message to schedule a lesson.
Who are TutorMe tutors?
Many of our tutors are current college students or recent graduates of top-tier universities like MIT, Harvard and USC. TutorMe has thousands of top-quality tutors available to work with you.