Answer:
# Python Program to Print
# all subsets of given size of a set
import itertools
def findsubsets(s, n):
return list(itertools.combinations(s, n))
# Driver Code
s = {1, 2, 3}
n = 2
print(findsubsets(s, n))
-----------------------------------------------
# Python Program to Print
# all subsets of given size of a set
import itertools
# def findsubsets(s, n):
def findsubsets(s, n):
return [set(i) for i in itertools.combinations(s, n)]
# Driver Code
s = {1, 2, 3, 4}
n = 3
print(findsubsets(s, n))
-------------------------------------------------------------
# Python Program to Print
# all subsets of given size of a set
import itertools
from itertools import combinations, chain
def findsubsets(s, n):
return list(map(set, itertools.combinations(s, n)))
# Driver Code
s = {1, 2, 3}
n = 2
print(findsubsets(s, n))
Answer:
The critical radius is -1.30 nm
Explanation:
Temperature for homogenous nucleation of copper, 
Melting point of copper, 
Latent heat of fusion, 
Surface free energy, 
Critical radius, r = ?
The formula for the critical radius is given by:



The critical radius is -1.30 nm
Answer:
Algorith does not work.
Explanation:
One of the ways to obtain the Dekker Algorithm is through a change in the declaration, that is, a declaration that can be executed at the exact moment it leaves the critical section. This way it is possible that the statement,
turn = 1-i / * P0 sets turn to 1 and P1 sets turn 0 * /
It can be changed to,
turn = (turn +1) \% n / * n = number or processes * /
The result will allow to define if it works or not, that is, if it is greater than 2 the algorithm will not be able to work.
Given this consideration we can say that,
<em>- The dead lock does not occur, because the mutual is imposed (if a resource unit has been assigned to a process, then no other process can access that resource).</em>
<em>- There is the possibility of starving if the shift is established in a non-contentious process.</em>
Directly it can be concluded that there is a possibility of starvation so the algorithm could not work, despite the fact that mutual exclusion guarantees that a dead block does not occur.
Answer:
The maximum power dissipation of the zener diode 112mV.
Explanation:
The minimum zener current should be:
5 * Iza= 5 * 1= 5 mA.
Since the load current can be at maximum 15 mA, we should select R so that, IL= 15 mA.
A zener current of 5 mA is available, Thus the current should be 20 mA, which leads to,
R =
= 470 Ω.
Maximum power dissipated in the diode occours when, IL=0 is
Pmax = 20 *
* 5.6 = 112mV.
Answer:
See attached file please.
Explanation:
See attached file for detailed explanation and code.
import java.util.*;
class LinklistImplementQueue {
public static void main(String[] args)
{
Scanner scan = new Scanner(System.in);
/* Creating object of class SLLQueue */
SLLQueue lq = new SLLQueue();
char ch;
do
{
System.out.println("\nQueue Operations");
System.out.println("1. ENQUEUE");
System.out.println("2. DEQUEUE");
int choice = scan.nextInt();
.
.
.
.
See attached file for complete code.